tools-deps

vemv 2024-08-14T19:25:45.729759Z

Is it possible to override a transitive dependency that a Tool will use? (at 'tool install' time or on the fly - I don't mind)

Alex Miller (Clojure team) 2024-08-14T19:30:06.024849Z

yes, you should be able to modify the classpath of the tool at execution time (except for named tools and the Clojure dependency itself - this is a known issue I'm currently working on)

vemv 2024-08-14T19:34:25.006039Z

Do you mean using -Scp ? Ideally I could override a just a dep using this syntax clansi/clansi {:mvn/version "1.0.0"} and let tools.deps resolve the entire resulting tree as usual

Alex Miller (Clojure team) 2024-08-14T19:35:52.584799Z

you can do that via something like:

clj -Sdeps '{:aliases {:change {:override-deps {clansi/clansi {:mvn/version "1.0.0"}}}}}' -A:change -Twhatever

vemv 2024-08-14T19:36:06.074449Z

Thanks!

Alex Miller (Clojure team) 2024-08-14T19:36:24.606289Z

or if you're using a tools alias, -T:change:whatever