tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
Darin Douglass 2021-03-15T13:31:39.297900Z

i'm quite new to using clj and i'm attempting to get my feet under me with regards to how all the aliases/deps/paths keys work together. is there any functional difference between -Stree and -X:deps tree? the docs mention them together and make no distinction between the two other than -X:deps "has more options". i'm finding with a super simple deps.edn file -Stree and -X:deps tree return different trees:

;; deps.edn (i've also tried this same config using `-Sdeps '...'`)
{:aliases {:1.10 {:override-deps {org.clojure/clojure {:mvn/version "1.10.0"}}}}}

➜ clj --version
Clojure CLI version 1.10.3.814

➜ clj -Srepro -Sforce -A:1.10 -Stree
org.clojure/clojure 1.10.0
  . org.clojure/spec.alpha 0.2.176
  . org.clojure/core.specs.alpha 0.2.44

➜ clj -Srepro -Sforce -A:1.10 -X:deps tree
org.clojure/clojure 1.10.3
  . org.clojure/spec.alpha 0.2.194
  . org.clojure/core.specs.alpha 0.2.56
the -Stree result is the tree i would expect to see given my aliases

dnolen 2021-03-15T13:51:45.298500Z

814 appears to fix the git fetch issues, I don't see problems in Cursive or at the CLI now

alexmiller 2021-03-15T15:09:06.300200Z

Yes, these are different. -Stree shows you the tree for the classpath being run, including aliases or other modifiers on the command line

alexmiller 2021-03-15T15:09:57.301700Z

-X:deps tree is running a tree program that computes the tree for the project.edn (command line modifiers are not considered)

Darin Douglass 2021-03-15T15:36:02.301900Z

by project.edn do you mean <project>/deps.edn?

Darin Douglass 2021-03-15T15:38:24.302100Z

also a blank -Stree 's output should be equivalent to -X:deps tree?

alexmiller 2021-03-15T15:48:15.302700Z

Sorry, yes I meant project deps.edn

alexmiller 2021-03-15T15:48:30.303200Z

And yes, should be the same

Darin Douglass 2021-03-15T17:12:56.303400Z

awesome thanks for the clarification