Fork me on GitHub
#tools-deps
<
2022-04-08
>
borkdude12:04:07

I guess the answer will be no, but does deps.edn support global exclusions? E.g. an app has dependencies that depend on org.foo/lib but wants to override it globally with another dep which brings in the same namespaces, but is published under a different organization org.bar/lib.

Alex Miller (Clojure team)12:04:45

No, but I'm pretty sure there is an ask question if you want to upvote

borkdude12:04:02

I may have bad searching skills, but I don't see one

borkdude12:04:47

I guess an ugly workaround could be to make a local/root dep indirection and then make an exclusion on that

rickmoynihan13:04:24

@borkdude I’m curious were you forking a transitive dep? I had a similar case recently

borkdude13:04:45

@rickmoynihan I'm asking for something we're considering called tools.misc : https://github.com/clj-easy/tools.misc The idea is that you can choose one tool (JSON or http client, etc) but can swap the implementation on the application level to reduce the number of dependencies. A few implementations will be centrally maintained, but it should be possible to override those with your own or other third party implementations.

rickmoynihan13:04:12

ok so essentially like putting all your java interfaces in a dep separate from the implementations; but for clojure obviously. Interesting :thinking_face:

borkdude13:04:10

kind of yes