tools-deps

borkdude 2026-03-27T16:09:52.284619Z

I'm surprised by this bug. https://github.com/babashka/bbin/pull/108 Could it be that the user overrode :mvn/repos in their global deps.edn? I guess deps.edn doesn't merge the default settings with what the user overrode so it's possible they lose clojars by providing only maven or so?

Alex Miller (Clojure team) 2026-03-27T16:14:21.941209Z

I don't feel like I have enough info to understand. What was the user's original project deps.edn? what was their user deps.edn? What effective version of tools.deps or Clojure CLI is being used?

Alex Miller (Clojure team) 2026-03-27T16:14:50.563439Z

can you take it out of bb land and into just CLI?

borkdude 2026-03-27T16:16:09.732229Z

I don't have enough information still either, but my question, apart from the issue, is: how does mvn/repos merge?

Alex Miller (Clojure team) 2026-03-27T16:16:57.583609Z

central and clojars are in the root deps.edn, deps.edn sources are merge-with merge'd

Alex Miller (Clojure team) 2026-03-27T16:17:27.327829Z

so effectively the :mvn/repo maps in the deps.edn chains are merged from root to ext

borkdude 2026-03-27T16:18:33.985409Z

right.

Alex Miller (Clojure team) 2026-03-27T16:19:27.506419Z

so you could "remove" clojars by {:mvn/repos {"clojars" nil}}

Alex Miller (Clojure team) 2026-03-27T16:19:34.300189Z

in user or project deps.edn

Alex Miller (Clojure team) 2026-03-27T16:20:09.413579Z

or central (but that will likely break your ability to get/check clojure itself and most stuff will break)

borkdude 2026-03-27T16:20:32.208239Z

good catch

borkdude 2026-03-27T16:20:37.427849Z

I'll mention that in the issue.