Fork me on GitHub
#deps-new
<
2021-06-10
>
fenton18:06:18

@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 ""}

seancorfield19:06:11

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

🙂 2
seancorfield19:06:11

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

seancorfield19:06:26

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

fenton19:06:37

$ 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

fenton19:06:51

seems it's not reading that deps right?

seancorfield19:06:37

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

fenton19:06:11

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

fenton19:06:27

replace with your deps.edn

seancorfield19:06:39

Can you run

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

seancorfield19:06:10

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