This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-03
Channels
- # announcements (3)
- # asami (4)
- # aws (1)
- # babashka (22)
- # beginners (111)
- # calva (3)
- # cider (1)
- # clj-kondo (55)
- # clj-on-windows (9)
- # cljsrn (1)
- # clojure (13)
- # clojure-europe (35)
- # clojure-losangeles (3)
- # clojure-nl (2)
- # clojure-norway (2)
- # clojure-spec (2)
- # clojure-uk (5)
- # clojurescript (51)
- # conjure (5)
- # cursive (5)
- # datascript (1)
- # datomic (27)
- # deps-new (8)
- # depstar (41)
- # emacs (4)
- # fulcro (24)
- # graphql (4)
- # gratitude (8)
- # helix (36)
- # jobs (2)
- # leiningen (2)
- # lsp (11)
- # off-topic (24)
- # pathom (23)
- # pedestal (2)
- # polylith (27)
- # re-frame (12)
- # reagent (7)
- # reitit (1)
- # releases (3)
- # remote-jobs (1)
- # rewrite-clj (4)
- # sci (1)
- # shadow-cljs (27)
- # spacemacs (12)
- # tools-deps (31)
- # web-security (2)
is there faster way to prefetch deps for all aliases rather then invoke clojure
with alias multiple times?
- clojure -Sdeps '{:mvn/local-repo ".m2"}' -A:test -Spath
- clojure -Sdeps '{:mvn/local-repo ".m2"}' -A:prod -Spath
- clojure -Sdeps '{:mvn/local-repo ".m2"}' -A:uberjar -Spath
it is not super long, but still takes around 40 secs (according to ci)note that combining aliases might result in a different dep resolution than a per alias invocation
because they might influence each other
exaclty the reason
@kirill.salykin you could do this in parallel to speed things up. I hope git / mvn can deal with that, but I think it should
thats an idea, thanks
tell me more š
bb.edn
{:tasks {test-deps (clojure "-Sdeps '{:mvn/local-repo ".m2"}' -A:test -Spath")
prod-deps ...
main-deps ...
all-deps {:depends [test-deps prod-deps main-deps]}
And the run bb run --parallel all-deps
sorry for stupid question, just to ensure, bb is on par with latest
tools-deps?
awesome! you are the best!
if you don't want to rely on the latest bb clojure
, then you can also use (shell "clojure -Sdeps ...")
thanks for pointers, need to wrap my head around it
See docs: https://book.babashka.org/#tasks I also did a talk about it: https://www.youtube.com/watch?v=u5ECoR7KT1Y
oh, you so nice
thanks!
nice, will give it a try!
You are likely to get different deps from combining than separate
We do have some open issues related to parallel downloads too
care to share the link? Iād like to +1 those
This is an area of active changes in Maven itself over the last few core releases
good things
Where do I go to suggest features for tools deps and the clojure cli? Just http://ask.clojure.org?
Yes, that's the best place.
Cool, thanks