tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
2021-04-23T23:06:35.053900Z

How does tools.deps transitive dependencies work for Git deps? For Maven, I'm guessing it pulls the artifact from Maven, and that should always contain a POM.xml file which can then parse to continue the transitive dependency resolution. But what about for git deps? Does it rely on deps.edn files to do so?

2021-04-23T23:15:50.054200Z

yes

2021-04-23T23:18:15.054900Z

the code eventually calls https://github.com/clojure/tools.deps.alpha/blob/master/src/main/clojure/clojure/tools/deps/alpha/extensions.clj#L22-L30 so it will look for deps.edn or pom.xml in the git dep

2021-04-23T23:29:52.055600Z

Oh cool, so it can also work if the deps has a pom.xml only.

2021-04-23T23:40:32.056100Z

well, pretty good chance if there is a pom.xml it will require compiling java, which won't work

vlaaad 2021-04-24T12:03:57.056800Z

@alexmiller stop, I can only get so hyped for tools-build!

2021-04-23T23:40:51.056400Z

but it'll try

alexmiller 2021-04-23T23:41:59.056600Z

....... yet