Why does clj -Sdeps tree fail with
Error building classpath. Don't know how to create ISeq from: clojure.lang.Symbol
java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol
at clojure.lang.RT.seqFrom(RT.java:577)
at clojure.lang.RT.seq(RT.java:557)
at clojure.core$seq__5486.invokeStatic(core.clj:139)
at clojure.core$merge_with$merge2__6053.invoke(core.clj:3090)
But clj -X:deps tree succeeds
What's the difference between the two?It wasn’t going through that till the new years release
Well, I would not want to publicize it as is, will not play as expected with caching
At least, needs some consideration
Can you provide the clj -version and deps.edn
The version of tools.deps is often slightly different in these two paths, usually not in important ways but I can say more knowing the CLI version
clj -version
Clojure CLI version 1.12.0.1488
clojure version 1.12.0I upgraded clojure-cli and now I get a better error and now I know my cli cmd was wrong
ok, was going to say I couldn't repro that
With the new cli
clj -Sdeps tree
Error building classpath. Unexpected dep source: tree
I don't think there's a command like this .. There's
clj -Streeyes, sorry for not seeing that, reading on my phone
Is it official that -Sdeps can take a string for a filename and read that EDN file?
No, but I can imagine how it gained that ability in the recent refactor
Git blame suggests the choose-deps fn which reads -Sdeps '"file.edn"' has been that way for four years... interesting... I suspect a number of people would be very pleased to know that functionality exists 🙂