@alexmiller Is it just an oversight that https://ask.clojure.org/index.php/10564/specify-an-alias-that-is-a-set-of-other-aliases has no associated Jira ticket for it?
probably
It is possible to use many aliases with each other as has been stated in the stack exchange post, by chaining them together I have found that explicitly including the aliases used to be much clearer as to the intent of the command and offers far greater flexibility. Defining relationships between aliases seems like it could lead to greater complexity in the design and levels of abstraction behind what is otherwise can be a very clear chain of aliases. Once you can have an alias depend on another, what is the precedence of any conflicting configs between aliases? Would we also need to have an excludes mechanism, as with dependencies?
Hi!
I’m using 1.10.3.855
version of CLI and I’m getting strange (to me at least) results:
$ clojure -P -A:test:lint
Downloading: net/gcardone/junidecode/junidecode/0.4.1/junidecode-0.4.1.pom from central
Downloading: org/clojure/clojure/1.10.2/clojure-1.10.2.pom from central
Downloading: clj-kondo/clj-kondo/2021.03.22/clj-kondo-2021.03.22.pom from clojars
...
$ clojure -P -A:test
Downloading: com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.4.4/jackson-dataformat-cbor-2.4.4.pom from central
Downloading: com/fasterxml/jackson/core/jackson-core/2.4.4/jackson-core-2.4.4.pom from central
Downloading: com/fasterxml/jackson/core/jackson-core/2.10.0/jackson-core-2.10.0.pom from central
...
I’m trying to install all the deps with one command, but for some reason there are still “missing” deps when I run -P
with just test
alias (and extra download is happening on CI when test
alias is run, clojure -P -A:test
here is just to illustrate the problem).
Both test
& lint
aliases contain just :extra-deps
key with one dep in each.
Do I miss something?@il.tmfv it could be that :test:lint
results in a different resolution for jackson than only :test
how to check it?
you could try -Stree
for either
Yep, looks like it
I see that for test
com.fasterxml.jackson.core/jackson-core
is in different “place”
How to handle such situations? Run -P
twice for each alias to have CI cache for all possible deps?
yes, you should run -P for whatever set of aliases you plan to run - the version choices are affected by the total set of libs you've selected
good, thank you guys 🤝
An aside - I really love that Clojure has a man page on my computer. Thank you for maintaining that 🙂
;)
(I hadn't seen the -P before, so I looked there)
whatever format that's called, it is the worst markup format
troff probably
Yeah, that's the one.
https://sr.ht/~sircmpwn/scdoc/ You might be interested in trying this instead.
of course the man page is by elana hashman. She is awesome
(just reading it now, didn't know it was there before)
she contributed it a few years ago and I've been keeping it up to date in the package
its a nice touch. thanks!
You probably are aware but https://docs.asciidoctor.org/asciidoctor/latest/manpage-backend/
Oh yeah it can. I forgot that clojure uses adoc, use the adoc man format thing if you can 😄 adoc is the best.