This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-02
Channels
- # announcements (1)
- # aws (5)
- # babashka (13)
- # beginners (202)
- # bristol-clojurians (3)
- # cider (16)
- # clojure (283)
- # clojure-dev (8)
- # clojure-finland (30)
- # clojure-italy (4)
- # clojure-nl (6)
- # clojure-spec (17)
- # clojure-survey (161)
- # clojure-sweden (7)
- # clojure-uk (62)
- # clojurescript (4)
- # core-async (31)
- # cursive (3)
- # datomic (7)
- # defnpodcast (1)
- # fulcro (8)
- # jobs (2)
- # lumo (2)
- # malli (2)
- # off-topic (24)
- # other-languages (1)
- # overtone (1)
- # re-frame (6)
- # remote-jobs (3)
- # shadow-cljs (6)
- # spacemacs (17)
- # tools-deps (20)
probably an FAQ but my google-fu is lacking ; is there an order of precedence among :mvn/version and :local/root? could i somehow use both, where local is used for dev, but mvn is used for ci? has anything been written about producing this sort of environment specific variance?
We are using special alias for CI builds with :override-deps
key inside
It'll be an array map, so whichever namespace is found first most likely. As mentioned you should use override deps.
the way the code is written (https://github.com/clojure/tools.deps.alpha/blob/master/src/main/clojure/clojure/tools/deps/alpha/extensions.clj#L32-L37) it depends on the first namespace key found in a map, so you should not assume any arbitrary order. Really, I'd say this is an error.
the whole point of stuff like :override-deps is to explicitly support the use case of changing a dep source
thanks folks!
Works beautifully.
i.e., if I want to pass in mvn/repo
configuration on the command line, thus ignoring whatever is set in any deps.edn
file, is it this switch I require?
@dharrigan you can check that with -Spath
This is an example for mvn + git:
src:/Users/borkdude/.m2/repository/org/clojure/clojure/1.10.1/clojure-1.10.1.jar:/Users/borkdude/.gitlibs/libs/borkdude/medley/91adfb5da33f8d23f75f0894da1defe567a625c0/src:/Users/borkdude/.m2/repository/org/clojure/spec.alpha/0.2.176/spec.alpha-0.2.176.jar:/Users/borkdude/.m2/repository/org/clojure/core.specs.alpha/0.2.44/core.specs.alpha-0.2.44.jar
seancorfield/depstar {:mvn/version "0.5.0"}
now manages the AOT compilation folder automatically -- no need to manually create classes
or add it to the classpath; seancorfield/clj-new {:mvn/version "0.8.3"}
updated to use latest depstar
(so app
template no longer needs classes
folder).
That's good to hear! :thumbsup::skin-tone-2:
0.5.1 and 0.8.4 just released to add support for projects where the main namespace has -
in its path and/or its name.
0.5.1 and 0.8.4 just released to add support for projects where the main namespace has -
in its path and/or its name.