In version 1.12.0-alpha4
, calling any of the clojure.repl.deps/add-libs related functions will fail when *print-length*
is set, ostensibly to a number small enough to abbreviate your project's :deps
when printing them.
So to reproduce, create a new project with 10 deps in deps.edn then
(set! *print-length* 5)
(add-libs '{my/lib {:mvn/version "0.1"}}) ;;fails
(set! *print-length* nil)
(add-libs '{my/lib {:mvn/version "0.1"}}) ;;now it works
I believe this is due to this line in clojure.tools.deps.interop