deps-new 2021-06-10

@seancorfield

$ clojure --version
Clojure CLI version 1.10.3.849

$ clojure -Sdescribe                                                      
{:version "1.10.3.849"
 :config-files ["/usr/share/clojure/deps.edn" "/home/fenton/.clojure/deps.edn" "deps.edn" ]
 :config-user "/home/fenton/.clojure/deps.edn"
 :config-project "deps.edn"
 :install-dir "/usr/share/clojure"
 :config-dir "/home/fenton/.clojure"
 :cache-dir ".cpcache"
 :force false
 :repro false
 :main-aliases ""
 :repl-aliases ""}

OK, that’s up to date. And confirms that ~/.clojure/deps.edn is the user file it will use.

🙂 1

I replaced my user deps with yours and ran that same clojure command in an empty folder and it worked just fine.

Is there a deps.edn in the folder where you are running that -X:new command?

$ clj -Spath                                                              1 ↵
src:/home/fenton/.m2/repository/org/clojure/clojure/1.10.3/clojure-1.10.3.jar:/home/fenton/.m2/repository/org/clojure/core.specs.alpha/0.2.56/core.specs.alpha-0.2.56.jar:/home/fenton/.m2/repository/org/clojure/spec.alpha/0.2.194/spec.alpha-0.2.194.jar

seems it's not reading that deps right?

Not sure what you mean. Those are the default deps I’d expect to see for clojure -Spath (without a local deps.edn file).

yes there was another deps.edn in ~/.clojure got rid of that and seems to work now...sorry

replace with your deps.edn

Can you run

cat /home/fenton/.clojure/deps.edn
OK, yeah, I think your user deps.edn was messed up.

The ~/.config/clojure one is not going to be relevant on your system, based on the output of clojure -Sdescribe.