tools-deps

2025-03-03T00:56:16.118539Z

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?

Alex Miller (Clojure team) 2025-03-03T14:03:28.957809Z

It wasn’t going through that till the new years release

Alex Miller (Clojure team) 2025-03-03T14:05:18.930099Z

Well, I would not want to publicize it as is, will not play as expected with caching

Alex Miller (Clojure team) 2025-03-03T14:06:09.902249Z

At least, needs some consideration

Alex Miller (Clojure team) 2025-03-03T01:12:49.854929Z

Can you provide the clj -version and deps.edn

Alex Miller (Clojure team) 2025-03-03T01:16:02.490489Z

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

2025-03-03T01:19:29.260789Z

clj -version
Clojure CLI version 1.12.0.1488
clojure version 1.12.0

2025-03-03T01:45:52.615819Z

I upgraded clojure-cli and now I get a better error and now I know my cli cmd was wrong

Alex Miller (Clojure team) 2025-03-03T01:46:09.636839Z

ok, was going to say I couldn't repro that

2025-03-03T01:46:46.053929Z

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 -Stree

Alex Miller (Clojure team) 2025-03-03T01:54:29.807319Z

yes, sorry for not seeing that, reading on my phone

1
seancorfield 2025-03-03T03:37:12.147279Z

Is it official that -Sdeps can take a string for a filename and read that EDN file?

Alex Miller (Clojure team) 2025-03-03T04:22:07.486769Z

No, but I can imagine how it gained that ability in the recent refactor

seancorfield 2025-03-03T05:06:29.559359Z

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 🙂