tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
athomasoriginal 2020-10-19T00:27:30.377300Z

Is there an equivalent of :local/root in the alternative tools e.g. lein or boot? The reason for the question is because this makes debugging 3rd party library (say reagent) wildly easy. Just clone the lib, add it as a :local/root and then start editing the library as if it was part of your project. Seems like reason enough for Clojure Tools to be used over alternatives.

seancorfield 2020-10-19T00:35:23.379200Z

@tkjone I think that is what checkouts is for in Leiningen? https://github.com/technomancy/leiningen/blob/stable/doc/TUTORIAL.md#checkout-dependencies (I've never used that but it sounds a bit like using :local/root in deps.edn)

๐Ÿ‘ 1
โ˜๏ธ 1
seancorfield 2020-10-19T00:36:09.380300Z

There's also a plugin for Leiningen that lets you specify your dependencies via a deps.edn which, presumably, would also serve you for this purposes I think...

seancorfield 2020-10-19T00:37:47.380900Z

https://github.com/RickMoynihan/lein-tools-deps -- yes, it supports :local/root and :git/url, according to its README.

seancorfield 2020-10-19T00:39:37.382600Z

(`checkouts` would require that the checked-out library be a Leiningen project as well -- Rick's plugin should work for non-lein projects, but for transitive dependencies you'd need it to have pom.xml or deps.edn in it I think)

grzm 2020-10-19T21:48:57.387900Z

Was there a change recently (past month or so) in clojure.tools.deps that changed the order of the classpath? In clojure 1.10.1.507 Iโ€™m seeing clojure -Spath puts deps.edn :paths first (e.g., with {:paths ["src/main/clojure"] ,,,}, src/main/clojure is the first item in the classpath), and in clojure 1.10.1.645 Iโ€™m seeing :paths listed last.

dpsutton 2020-10-19T21:50:38.388200Z

> 0.9.799 on Sep 16, 2020- Fix classpath ordering for paths and libs

grzm 2020-10-19T21:51:19.388800Z

Cheers! Is there a quick way to correlate tools.deps versions other than looking at the change log?

dpsutton 2020-10-19T21:52:09.389100Z

i'm not sure. i just remembered that change being discussed vaguely. sorry

dpsutton 2020-10-19T21:52:20.389500Z

correlate versions to what?

grzm 2020-10-19T21:52:22.389600Z

No worries, you already did more than I could do on my own ๐Ÿ™‚

grzm 2020-10-19T21:53:20.390800Z

The clojure-tools release and the clojure.tools.deps releases. Looking at the clojure -h on an installation, I see the former. Iโ€™d like to get at the latter more easily.

alexmiller 2020-10-19T22:26:06.391200Z

https://clojure.org/releases/tools

alexmiller 2020-10-19T22:27:46.392500Z

Thatโ€™s kind of a consolidated release page for clj and tools.deps (versions of that included for reference) only for stable versions of clj

๐Ÿ‘ 1
grzm 2020-10-20T18:49:45.421700Z

Yeah, found that. I was hoping to have something similar to the output of clojure -h on the command line, to aid in debugging rather than referring to a webpage. That works, though.

alexmiller 2020-10-20T18:54:44.422Z

you can tell by doing clj -A:deps -Stree | grep tools.deps.alpha

grzm 2020-10-20T19:54:38.422300Z

Cheers!

grzm 2020-10-20T19:55:20.422900Z

writes that down