repro:
user=> (add-lib 'io.github.borkdude/grasp {:mvn/version "0.1.4"})
Execution error (ExceptionInfo) at clojure.tools.deps.interop/invoke-tool (interop.clj:81).
Could not find artifact org.clojure:clojure:jar:1.11.0-rc1
This seems strange to me. The deps edn of grasp: https://github.com/borkdude/grasp/blob/master/deps.edn
{:deps {org.babashka/sci {:mvn/version "0.3.2"}}
:aliases {:native {:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:extra-deps {org.clojure/clojure {:mvn/version "1.10.2-alpha3"}
org.clojure/tools.cli {:mvn/version "1.0.194"}}}
:test {:extra-paths ["test"]
:extra-deps {org.clojure/clojure {:mvn/version "1.11.0-rc1"}
cognitect-labs/test-runner
{:git/url "https://github.com/cognitect-labs/test-runner"
:sha "cb96e80f6f3d3b307c59cbeb49bb0dcb3a2a780b"}}
:main-opts ["-m" "cognitect.test-runner"]}}}
It's surprising to me that deps in the :test
alias would cause issues.
EDIT: seems to work now. Here's the stacktrace from a socket repl where i first encountered it
user=> (add-lib 'io.github.borkdude/grasp {:mvn/version "0.1.4"})
Execution error (ExceptionInfo) at clojure.tools.deps.interop/invoke-tool (interop.clj:81).
Could not find artifact org.clojure:clojure:jar:1.11.0-rc1
user=> nil
user=> (pst)
ExceptionInfo Could not find artifact org.clojure:clojure:jar:1.11.0-rc1 {:via [{:type clojure.lang.ExceptionInfo, :message "Could not find artifact org.clojure:clojure:jar:1.11.0-rc1", :data {:lib org.clojure/clojure, :coord {:mvn/version "1.11.0-rc1", :deps/manifest :mvn, :dependents [io.github.borkdude/grasp], :parents #{[io.github.borkdude/grasp]}}}, :at [clojure.tools.deps.extensions.maven$get_artifact invokeStatic "maven.clj" 167]}], :trace [[clojure.tools.deps.extensions.maven$get_artifact invokeStatic "maven.clj" 167] [clojure.tools.deps.extensions.maven$get_artifact invoke "maven.clj" 155] [clojure.tools.deps.extensions.maven$eval1225$fn__1228 invoke "maven.clj" 178] [clojure.lang.MultiFn invoke "MultiFn.java" 244] [clojure.tools.deps$download_libs$fn__802$fn__803 invoke "deps.clj" 466] [clojure.lang.AFn applyToHelper "AFn.java" 152] [clojure.lang.AFn applyTo "AFn.java" 144] [clojure.core$apply invokeStatic "core.clj" 667] [clojure.core$with_bindings_STAR_ invokeStatic "core.clj" 1990] [clojure.core$with_bindings_STAR_ doInvoke "core.clj" 1990] [clojure.lang.RestFn invoke "RestFn.java" 428] [clojure.lang.AFn applyToHelper "AFn.java" 156] [clojure.lang.RestFn applyTo "RestFn.java" 135] [clojure.core$apply invokeStatic "core.clj" 671] [clojure.core$bound_fn_STAR_$fn__5837 doInvoke "core.clj" 2020] [clojure.lang.RestFn invoke "RestFn.java" 400] [clojure.lang.AFn call "AFn.java" 18] [java.util.concurrent.FutureTask run "FutureTask.java" 317] [java.util.concurrent.ThreadPoolExecutor runWorker "ThreadPoolExecutor.java" 1144] [java.util.concurrent.ThreadPoolExecutor$Worker run "ThreadPoolExecutor.java" 642] [java.lang.Thread run "Thread.java" 1583]], :cause "Could not find artifact org.clojure:clojure:jar:1.11.0-rc1", :data {:lib org.clojure/clojure, :coord {:mvn/version "1.11.0-rc1", :deps/manifest :mvn, :dependents [io.github.borkdude/grasp], :parents #{[io.github.borkdude/grasp]}}}}
clojure.tools.deps.interop/invoke-tool (interop.clj:81)
clojure.tools.deps.interop/invoke-tool (interop.clj:41)
clojure.repl.deps/add-libs (deps.clj:48)
clojure.repl.deps/add-lib (deps.clj:59)
clojure.repl.deps/add-lib (deps.clj:59)
user/eval310956 (NO_SOURCE_FILE:320)
user/eval310956 (NO_SOURCE_FILE:320)
clojure.lang.Compiler.eval (Compiler.java:7700)
clojure.lang.Compiler.eval (Compiler.java:7655)
clojure.core/eval (core.clj:3232)
clojure.core/eval (core.clj:3228)
user/eval257807/fn--257810 (NO_SOURCE_FILE:8)