tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
2020-09-30T21:52:37.132500Z

Is there a way to ignore the global ~/.m2/settings.xml when resolving repos? I have a situation in which my global file has a forced mirror that doesn't seem to be resolving snapshots correctly but if I just add the :mvn/repos to my deps.edn file and mv settings.xml settings.bak it works.

2020-09-30T21:53:18.132600Z

But I don't want to have to do that every time I want to sync my snapshots to my internal repo.

alexmiller 2020-09-30T22:12:00.133200Z

That’s maybe the best option right now

alexmiller 2020-09-30T22:12:50.134600Z

You could also set that repo id to nil in your deps.edn and then add a new one?

2020-09-30T22:23:42.137700Z

I’ll give that a shot. I’ve also got another workaround in which I run the clj command in a docker image with the source and ~/.m2/repository mounted in the container. Thanks!