Fork me on GitHub
#tools-deps
<
2020-10-19
>
athomasoriginal00:10:30

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.

seancorfield00:10:23

@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)

👍 3
☝️ 3
seancorfield00:10:09

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

seancorfield00:10:47

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

seancorfield00:10:37

(`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)

grzm21:10:57

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.

dpsutton21:10:38

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

grzm21:10:19

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

dpsutton21:10:09

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

dpsutton21:10:20

correlate versions to what?

grzm21:10:22

No worries, you already did more than I could do on my own 🙂

grzm21:10:20

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.

Alex Miller (Clojure team)22:10:46

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

👍 3
grzm18:10:45

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.

Alex Miller (Clojure team)18:10:44

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

grzm19:10:20

writes that down