This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-15
Channels
- # architecture (5)
- # babashka (34)
- # beginners (72)
- # calva (42)
- # cherry (31)
- # cider (14)
- # clojure (27)
- # clojure-europe (11)
- # clojure-norway (17)
- # clojure-uk (1)
- # clojurescript (25)
- # community-development (13)
- # conjure (1)
- # core-async (11)
- # datascript (18)
- # datomic (11)
- # emacs (12)
- # fulcro (10)
- # integrant (5)
- # introduce-yourself (3)
- # jobs (8)
- # juxt (2)
- # malli (22)
- # off-topic (11)
- # pathom (18)
- # polylith (62)
- # rdf (18)
- # reagent (8)
- # releases (1)
- # shadow-cljs (35)
- # sql (3)
- # squint (141)
- # tools-deps (12)
- # vim (4)
- # xtdb (4)
What is the rationale for not supporting :exclusions
at the top level of deps.edn? Is that a missing feature, or intentional? Sometimes I’ll want to completely replace a dep with internal code, and it’s not easy because I have to :exclude
it from each path. It’s also risky because any future dependency could reintroduce a dependency on the library
> completely replace a dep with internal code
Just adding the same namespaces to one of the dirs in your :paths
should do that, no?
the dep still gets resolved and downloaded, and might appear ahead of src on the classpath
Not sure what I'm looking at and why. If you're using tools.deps.alpha
, the content of :paths
should appear before the content of :deps
, as far as I know.
:paths will appear before deps on the classpath
but to the original question, just haven't gotten around to thinking about it properly. I actually don't think we have a ticket for it if you wanted to add a request at https://ask.clojure.org
The other reason to want to exclude globally is some java deps do magic if they’re on the classpath at all, e.g. slf4j injection
rules_clojure compiles very differently: each library is compiled separately, with their minimal classpath. In the case of 3rd party deps, that might not even include src at all
Cross-posting this here in case anyone has ideas. https://clojurians.slack.com/archives/C03S1L9DN/p1660343169880939
prep-lib is a way for a git dep to prepare a lib to be on the classpath, but I think what you're after is not about classpaths