Fork me on GitHub
#tools-deps
<
2021-06-29
>
il-tmfv13:06:18

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?

borkdude13:06:13

@il.tmfv it could be that :test:lint results in a different resolution for jackson than only :test

il-tmfv13:06:47

how to check it?

borkdude13:06:59

you could try -Stree for either

👍 2
il-tmfv13:06:25

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
il-tmfv13:06:41

good, thank you guys 🤝

dominicm14:06:00

An aside - I really love that Clojure has a man page on my computer. Thank you for maintaining that 🙂

dominicm14:06:19

(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

dominicm14:06:04

Yeah, that's the one.

dominicm14:06:29

https://sr.ht/~sircmpwn/scdoc/ You might be interested in trying this instead.

dpsutton14:06:44

of course the man page is by elana hashman. She is awesome

dpsutton14:06:54

(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

dpsutton14:06:37

its a nice touch. thanks!

dominicm14:06:57

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