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 ๐
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)I guess if I could get the full error context I might be able to see an HTTP error code and maybe a response?
everyone is having mvn issues at the moment. I think the top message is the most important. mvn central is having issues
OK thanks, good to know ๐
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?
I thought babashka might use ~/.clojure/deps.edn but it doesnโt appear to
No user level config right now. If this is a problem, we could open an issue for it
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.
agreed
Iโll create an issue ๐
https://github.com/babashka/babashka/issues/1972 Iโm happy to try to have a first go at it when I get the chance
https://github.com/babashka/babashka/pull/1973 ^ one possible solution/approach
thanks, I'll look at it when I get time to work on the next bb version (which shouldn't be long)
@dominic.freeston I replied with a comment to your PR and in the issue