Fork me on GitHub
#tools-deps
<
2021-08-20
>
seancorfield05:08:41

Does "tool" installation support projects in a subfolder of the repo? I'm thinking of Polylith's tool which would sort of be clojure -Ttools install com.github.polyfy/polylith '{:git/tag "v0.2.0-alpha11" :git/sha "f7bae45" :deps/root "projects/poly"}' :as poly (although it does not yet have a -X style entry point).

seancorfield05:08:26

I'm wondering which deps.edn the CLI would use and what :tools/usage would look like?

Alex Miller (Clojure team)12:08:37

The tool definition is just a tool name that resolves to a lib/coord so I think that should work

Alex Miller (Clojure team)12:08:26

The usage is just ns-default/ns-aliases so that does not seem affected

Alex Miller (Clojure team)12:08:18

I would expect it to use the one at projects/poly

Alex Miller (Clojure team)12:08:31

I haven’t tried any of this though :)

seancorfield16:08:10

@alexmiller I went ahead and tried it, and it works "as expected". I plan to add a "tools" API to Polylith this weekend so it can leverage the new CLI features.

💯 3
👍 2