This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-12
Channels
- # aleph (6)
- # announcements (11)
- # babashka (24)
- # beginners (127)
- # calva (33)
- # chlorine-clover (5)
- # cider (7)
- # clara (9)
- # cljs-dev (54)
- # cljsrn (5)
- # clojure (61)
- # clojure-australia (8)
- # clojure-bay-area (11)
- # clojure-europe (36)
- # clojure-italy (3)
- # clojure-nl (3)
- # clojure-spec (6)
- # clojure-taiwan (1)
- # clojure-uk (8)
- # clojurescript (94)
- # code-reviews (2)
- # community-development (6)
- # conjure (26)
- # core-typed (1)
- # cursive (3)
- # datahike (4)
- # datomic (14)
- # events (1)
- # graphql (1)
- # honeysql (49)
- # introduce-yourself (5)
- # jobs-discuss (15)
- # kaocha (6)
- # lsp (8)
- # malli (1)
- # meander (5)
- # nrepl (1)
- # off-topic (21)
- # other-languages (1)
- # pathom (13)
- # podcasts-discuss (1)
- # polylith (1)
- # reitit (16)
- # shadow-cljs (50)
- # spacemacs (11)
- # sql (11)
- # tools-deps (21)
- # unrepl (1)
- # vim (9)
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
![thumbsup_all](https://emoji.slack-edge.com/T03RZGPFR/thumbsup_all/50096a1020.png)
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?
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 :)