babashka

dominic 2026-05-11T13:24:19.425549Z

Is there a way to get a more descriptive output from babashka when it fails to resolve dependencies? I think either maven is having intermittent issues at the moment or weโ€™re being rate-limited, and Iโ€™d like to work out which one ๐Ÿ˜„

dominic 2026-05-11T13:24:29.115169Z

This is the stack trace I get:

Error building classpath. Could not find artifact org.clojure:clojure:jar:1.11.1 in central ()
Exception in thread "main" clojure.lang.ExceptionInfo:  babashka.process.Process@1b8a891b
	at babashka.process$check.invokeStatic(process.cljc:111)
	at babashka.process$shell.invokeStatic(process.cljc:646)
	at babashka.impl.deps$add_deps$fn__27048.invoke(deps.clj:100)
	at borkdude.deps$_main.invokeStatic(deps.clj:969)
	at borkdude.deps$_main.doInvoke(deps.clj:804)
	at clojure.lang.RestFn.applyTo(RestFn.java:137)
	at clojure.core$apply.invokeStatic(core.clj:667)
	at babashka.impl.deps$add_deps$fn__27055$fn__27056.invoke(deps.clj:106)
	at clojure.lang.AFn.applyToHelper(AFn.java:152)
	at clojure.lang.AFn.applyTo(AFn.java:144)
	at clojure.core$apply.invokeStatic(core.clj:667)
	at clojure.core$with_bindings_STAR_.invokeStatic(core.clj:1990)
	at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1990)
	at clojure.lang.RestFn.invoke(RestFn.java:425)
	at babashka.impl.deps$add_deps$fn__27055.invoke(deps.clj:106)
	at babashka.impl.deps$add_deps.invokeStatic(deps.clj:106)
	at babashka.main$exec$fn__31821.invoke(main.clj:870)
	at clojure.lang.AFn.applyToHelper(AFn.java:152)
	at clojure.lang.AFn.applyTo(AFn.java:144)
	at clojure.core$apply.invokeStatic(core.clj:667)
	at clojure.core$with_bindings_STAR_.invokeStatic(core.clj:1990)
	at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1990)
	at clojure.lang.RestFn.invoke(RestFn.java:425)
	at babashka.main$exec.invokeStatic(main.clj:822)
	at babashka.main$main.invokeStatic(main.clj:1165)
	at babashka.main$main.doInvoke(main.clj:1122)
	at clojure.lang.RestFn.applyTo(RestFn.java:137)
	at clojure.core$apply.invokeStatic(core.clj:667)
	at babashka.main$_main.invokeStatic(main.clj:1198)
	at babashka.main$_main.doInvoke(main.clj:1190)
	at clojure.lang.RestFn.applyTo(RestFn.java:137)
	at babashka.main.main(Unknown Source)

dominic 2026-05-11T13:25:09.522049Z

I guess if I could get the full error context I might be able to see an HTTP error code and maybe a response?

borkdude 2026-05-11T13:27:23.354189Z

everyone is having mvn issues at the moment. I think the top message is the most important. mvn central is having issues

๐Ÿ™ 1
dominic 2026-05-11T13:27:39.282979Z

OK thanks, good to know ๐Ÿ˜„

dominic 2026-05-12T14:34:17.172719Z

As a follow on from the maven issues (which does appear to be an increase in rate-limiting) - weโ€™re pointing our deps and lein projects to a mirror, is there a way to set a user-level config to make babashka use a mirror as well? Or does this need to be set in each bb.edn file separately?

dominic 2026-05-12T14:34:48.975559Z

I thought babashka might use ~/.clojure/deps.edn but it doesnโ€™t appear to

borkdude 2026-05-12T14:35:23.280589Z

No user level config right now. If this is a problem, we could open an issue for it

dominic 2026-05-12T14:36:53.804759Z

It definitely would be handy - we use bb as our task runner for all our projects and the ability to switch the mirror on the CI would be great, for example.

borkdude 2026-05-12T14:37:15.094909Z

agreed

โค๏ธ 1
dominic 2026-05-12T14:39:13.618979Z

Iโ€™ll create an issue ๐Ÿ‘

๐Ÿ‘ 1
dominic 2026-05-12T15:23:07.375969Z

https://github.com/babashka/babashka/issues/1972 Iโ€™m happy to try to have a first go at it when I get the chance

dominic 2026-05-12T21:55:14.581919Z

https://github.com/babashka/babashka/pull/1973 ^ one possible solution/approach

borkdude 2026-05-12T21:59:52.369779Z

thanks, I'll look at it when I get time to work on the next bb version (which shouldn't be long)

๐Ÿ™ 1
borkdude 2026-05-15T13:42:29.000009Z

@dominic.freeston I replied with a comment to your PR and in the issue

๐Ÿ‘€ 1