This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-20
Channels
- # announcements (1)
- # bangalore-clj (27)
- # beginners (82)
- # boot (4)
- # chestnut (1)
- # cider (22)
- # cljs-dev (26)
- # cljsrn (4)
- # clojure (118)
- # clojure-dev (18)
- # clojure-italy (2)
- # clojure-losangeles (1)
- # clojure-nl (2)
- # clojure-russia (1)
- # clojure-spec (15)
- # clojure-uk (125)
- # clojurescript (61)
- # core-async (74)
- # cursive (2)
- # datomic (41)
- # duct (6)
- # editors (7)
- # emacs (3)
- # events (1)
- # figwheel-main (3)
- # fulcro (111)
- # hoplon (11)
- # jobs-discuss (97)
- # lein-figwheel (99)
- # off-topic (34)
- # onyx (4)
- # parinfer (9)
- # pedestal (4)
- # precept (2)
- # re-frame (5)
- # reagent (2)
- # reitit (4)
- # ring-swagger (11)
- # shadow-cljs (104)
- # spacemacs (4)
- # tools-deps (19)
- # vim (8)
- # yada (15)
hi all, is there a way to run clojure
such that it only downloads the dependencies and exits? Similar to lein deps
. Use-case is in docker, where caching is done by diffing USE
d files.
clojure -e "(clojure-version)"
this will download everything, print out your clojure version and exit with exit code 0
@delaguardo haha wouldn’t clojure -e "(System/exit 0)"
work equally well in that case?
sure)
I’m just copying my configuration where I’m using printed value as a part of deploy report)
Okay, thanks @delaguardo!
clojure -Spath
will work
@dottedmag oh that’s nice and concise!
@alexmiller would clojure -Sdescribe
also work?
I ask because that would end up printing a lot less than -Spath
Haha @ghadi that’s an interesting solution, but I think I’d prefer clojure -e ''
to that.
oooh, so like, once for getting the deps, and then another for launching the repl?
still good to know how things work! Thanks for explaining 🙂