Fork me on GitHub

I'm seeing an Error building classpath message when running clj. I'm running with -Sverbose but it doesn't help to identify the problematic dependency.


$ clj -Sverbose -Sdeps '{:deps {org.clojure/clojure {:mvn/version "1.9.0"} midje {:mvn/version "1.9.7"}}}' 
version      =
install_dir  = /nix/store/i2zsj4qknknpfrvfhpx0z69c44b0c12j-clojure-
config_dir   = /home/rafael/.clojure
config_paths = /nix/store/i2zsj4qknknpfrvfhpx0z69c44b0c12j-clojure- /home/rafael/.clojure/deps.edn deps.edn
cache_dir    = .cpcache
cp_file      = .cpcache/2657530762.cp

Refreshing classpath
Error building classpath. In the dependency graph, library org.clojure/clojure specifies version range "[1.2.1],[1.3.0]" - please specify a version in your configuration.


Should I open an issue? I'm having a hard time finding out how to proceed debugging the problem.

Alex Miller (Clojure team)21:04:43

Update your clj version

Alex Miller (Clojure team)21:04:24

Some older versions like this one didn’t handle version ranges


Newbie question: is there a way to test a new clj version without updating the binary installed in the system?


I think it's literally a shell script, you could try downloading it and executing it in a local dir?

Alex Miller (Clojure team)21:04:41

It’s both a script and an uberjar

Alex Miller (Clojure team)21:04:37

They need to be matched up

Alex Miller (Clojure team)21:04:07

There isn’t an easy way to do what you’re asking but you could always rollback to the version you’re on - it’s just the same url with the version you want