No problems so far, thank you.
When calling resolve-deps, are all the aliases included in the deps-map assumed to be active? That seems like that'd be the only reasonable semantic to me, but I'm not sure.
aliases might have overlapping deps, so the answer is - no, resolve-deps expect you to specify which aliases to use
How's that done? The resolve-deps function takes a deps map with an :aliases key, but doesn't have any way to specify which of the aliases are active in the args-map or other arguments.
https://github.com/clojure/tools.deps.alpha/blob/444b99b5d6b18e308d9a5817c8f07dc88a0bde2f/src/main/clojure/clojure/tools/deps/alpha.clj#L492
take a look. this function is looking only at :deps key. So I think resolve-deps
function is just a part of resolution procedure which is taking care about used aliases.
https://github.com/clojure/tools.deps.alpha/blob/9bf5778dc26dd5018dbf04fc8e7dbb32ddc4036c/src/main/clojure/clojure/tools/deps/alpha.clj#L184-L190
so I think before using resolve-deps you shoul use combine-aliases
function to build second argument for resolve-deps
that is correct
which deps.edns to merge and which aliases to use will depend on the scenario so this is outside calc-basis/resolve-deps
Oh, thanks! That helps out a lot!
I see make-classpath is deprecated. Is there something preferred to be used?
Just calc-basis and getting the classpath off of it?
make-classpath-map is the replacement
but also, calc-basis returns both a map of classpath data and just the cp
so kind of depends what you need
Alright. I definitely just need the classpath because I'm producing something to pass to the java compiler, but if calc-basis is preferred, I can definitely use that.
if calc-basis serves your needs, I would use that over the fine-grained functions
New release of Clojure CLI https://clojure.org/releases/tools#v1.10.3.833, just some relatively minor changes: • https://clojure.atlassian.net/browse/TDEPS-177 - Fix Maven mirrors to look up by id, not name • Remove flag when fetching git deps so that older git versions work • Tweak some warning messages • Clean up scripts to simplify variable replacement
apologies, that was broken for linux - 1.10.3.839 is now available
Ah, I guess I didn’t notice because I use brew
on Linux to manage my Clojure CLI stuff?
yeah
I always use the Linux install, but I rarely use the clj wrapper script. I'll try remember to test a pre-release with clj as well next time
well, I should have tested it better :)