Fork me on GitHub
#tools-deps
<
2018-10-19
>
jeff.terrell14:10:57

Is there a clj/clojure CLI equivalent to lein deps :tree?

seancorfield14:10:40

The closest is clj -Stree but it doesn't show conflicts, just the resolved dependencies. Folks have asked for this a few times. You may be able to get more information with -Sverbose -Sforce.

jeff.terrell14:10:58

Thanks. Nice to know for sure that this feature doesn't exist (yet). And -Sverbose -Sforce doesn't illuminate the conflict.

seancorfield14:10:44

I'm not at my computer right now but there is a way to get tools.deps to tell you what versions it finds and what it selects -- which is close.

jeff.terrell14:10:07

Or more generally: how can I diagnose a dependency conflict in a deps.edn project? I searched in various places (web, FAQ, deps & CLI guide and reference) but didn't see an answer. Seems like the kind of relatively undocumented thing that might go in a FAQ entry, which I'm willing to write if there's a good answer.

jeff.terrell14:10:53

And by the way, is there a canonical adjective to use for projects that manage dependencies with deps.edn? I'm looking for something parallel to 'A Leiningen project' and 'A Boot project'. A 'tools.dep' project? A 'deps.edn' project? A 'clojure deps' project?

👍 4
seancorfield14:10:10

I've been calling them 'A clj project' to parallel the use of the tool to run them but there's nothing official as far as I know.

jeff.terrell14:10:04

That's better than circumlocution, and maybe not too ambiguous. simple_smile Thanks.

Alex Miller (Clojure team)15:10:04

I would say not tools.deps, but either deps.edn or Clojure tools project

👍 8
seancorfield14:10:40

The closest is clj -Stree but it doesn't show conflicts, just the resolved dependencies. Folks have asked for this a few times. You may be able to get more information with -Sverbose -Sforce.

Jimmy Miller23:10:35

Is there a way to run clj and just have it pull down dependencies listed in deps.edn? Not start a repl or run anything, just download the dependencies.