tools-build

2024-11-05T21:24:50.397819Z

is there a nice way to invoke '-X' based tooling from a build.clj script?

seancorfield 2024-11-05T21:45:47.924699Z

invoke-tool is probably the closest thing, if -T is sufficient?

Alex Miller (Clojure team) 2024-11-05T21:46:06.784519Z

there is no extra help for this (yet) but you can build the equivalent proc call

Alex Miller (Clojure team) 2024-11-05T21:46:45.237299Z

I guess one of the questions to consider is whether you should just be including the deps and running the function in process instead

2024-11-05T21:46:54.587769Z

I am not sure, I just have some docs generating using -X:codox and I am thinking I want -T:build ci to invoke that

seancorfield 2024-11-05T21:46:55.898389Z

I guess the main Q is: ... hah, yeah, what Alex said.

Alex Miller (Clojure team) 2024-11-05T21:47:50.922559Z

you can use the clojure.java.basis api to grab the basis ... :aliases ... the alias to grab that config

Alex Miller (Clojure team) 2024-11-05T21:49:29.512379Z

it would be interesting to add a build task that made some of that easier (and worked in/out of proc)

Alex Miller (Clojure team) 2024-11-05T21:50:15.137439Z

https://clojure.atlassian.net/issues/TBUILD-6 is an old ticket (sean)

seancorfield 2024-11-05T21:50:52.937139Z

I wrote a -X task invoker at work -- essentially TBUILD-6 -- but it required some hacky stuff to get the basis at the time, and we switched back to -M invocation at some point.

Alex Miller (Clojure team) 2024-11-05T21:50:55.131469Z

some of the details there have changed since then wrt the basis and exec args