Welcome! Please see the About page for a little more info on how this works.

+1 vote
in REPL by
closed by

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

closed with the note: Released in 1.12.0-alpha6

1 Answer

0 votes