Fork me on GitHub

Hi! I’m using 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

👍 2

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?

Alex Miller (Clojure team)13:06:58

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

👍 2

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)

Alex Miller (Clojure team)14:06:29

whatever format that's called, it is the worst markup format


Yeah, that's the one.

dominicm14:06:29 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)

Alex Miller (Clojure team)14:06:11

she contributed it a few years ago and I've been keeping it up to date in the package


its a nice touch. thanks!


Oh yeah it can. I forgot that clojure uses adoc, use the adoc man format thing if you can 😄 adoc is the best.

adoc 2