This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-18
Channels
- # announcements (1)
- # babashka (16)
- # beginners (39)
- # calva (17)
- # cider (21)
- # cljs-dev (1)
- # clojars (2)
- # clojure (39)
- # clojure-australia (1)
- # clojure-europe (1)
- # clojure-spec (7)
- # conjure (1)
- # cursive (6)
- # datomic (2)
- # depstar (5)
- # graalvm (20)
- # instaparse (11)
- # meander (4)
- # pathom (4)
- # pedestal (3)
- # polylith (18)
- # re-frame (13)
- # reagent (4)
- # reitit (3)
- # shadow-cljs (2)
- # spacemacs (14)
- # vrac (1)
Hi,
Is it possible to override deps when invoking -X:jar
via CLI?
similar to -Sdeps '{:deps …}'
?
You have use aliases and tell depstar
what aliases to use.
I can’t use aliases here, because aliases are “fixed” in the edn file, and I want to override a local dep with a maven dep just for the sake of creating a JAR library, so the maven version might be different on different branches etc. It’s a small addition to depstar, I can add it in my fork and open a PR for you, if you wish. Basically I’m using the monorepo approach and when trying to build a JAR I get
Manifest type not detected when finding deps for localize/zinc in coordinate #:local{:root "/Users/golan/dev/git/clj-data/zinc"}
Which totally makes sense.
Anyway that’s my motivation.Can you open an issue for depstar
to describe in detail what problem you’re trying to solve here? Until I understand better what you’re trying to do and why, I would say don’t spend time on a PR. I’m also trying to keep half an eye on tools.build
so I don’t want to take on things that would move depstar
further away from that path.
The command-line -Sdeps
can only affect how the CLI runs a program -- that information is all gone by the time the is actually running and therefore it can't affect how the program behaves.