tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
seancorfield 2021-06-29T00:51:00.398300Z

@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?

alexmiller 2021-06-29T00:53:40.398600Z

probably

1
practicalli-john 2021-06-29T06:32:13.398800Z

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?

il-tmfv 2021-06-29T13:20:18.399600Z

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?

borkdude 2021-06-29T13:21:13.400100Z

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

il-tmfv 2021-06-29T13:21:47.400400Z

how to check it?

borkdude 2021-06-29T13:21:59.400700Z

you could try -Stree for either

👍 1
il-tmfv 2021-06-29T13:32:25.403200Z

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?

alexmiller 2021-06-29T13:38:58.404300Z

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

👍 1
il-tmfv 2021-06-29T13:40:41.404800Z

good, thank you guys 🤝

dominicm 2021-06-29T14:11:00.405300Z

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

alexmiller 2021-06-29T14:15:59.405600Z

;)

dominicm 2021-06-29T14:16:19.406Z

(I hadn't seen the -P before, so I looked there)

alexmiller 2021-06-29T14:16:29.406200Z

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

alexmiller 2021-06-29T14:16:59.406400Z

troff probably

dominicm 2021-06-29T14:17:04.406600Z

Yeah, that's the one.

dominicm 2021-06-29T14:17:29.407100Z

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

dpsutton 2021-06-29T14:17:44.407300Z

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

dpsutton 2021-06-29T14:17:54.407600Z

(just reading it now, didn't know it was there before)

alexmiller 2021-06-29T14:18:11.408Z

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

dpsutton 2021-06-29T14:19:37.408200Z

its a nice touch. thanks!

lread 2021-06-29T14:31:54.408900Z

You probably are aware but https://docs.asciidoctor.org/asciidoctor/latest/manpage-backend/

dominicm 2021-06-29T14:32:57.409500Z

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

1