Welcome! Please see the About page for a little more info on how this works.

+2 votes
in Clojure CLI by

When using the tools.deps API, I would like to resolve dependencies without downloading all of the jars, and I would like the return value to tell me the original URL of the dependency, rather than the path on disk.

The reason is I use bazel + https://github.com/griffinbank/rules_clojure, and if I have the URL, I can immutably cache artifacts in bazel, and have that cache be shared with all other developers at work.

That would be useful to Nix + https://github.com/jlesquembre/clj-nix users too.

1 Answer

0 votes

I added https://clojure.atlassian.net/browse/TDEPS-257 for resolving without artifact downloads (poms etc of course will need to be downloaded).

Once resolved to a list of lib/coords, the existing https://clojure.github.io/tools.deps/#clojure.tools.deps/lib-location api can tell you location without procuring.