tools-build 2021-09-07

Alex Miller (Clojure team) 2021-09-07T10:54:28.089Z

Sure, there actually is one buried in the utils, just need to clean up the api etc

thanks to both, I will do that until there is one in tools.build

@alexmiller: do you have time to work on that? should I give it a try?

Alex Miller (Clojure team) 2021-09-07T11:11:13.091300Z

I'll see if I can add it pretty quickly

Alex Miller (Clojure team) 2021-09-07T11:11:43.091800Z

you can also always just use the process task to shell out, which is pretty easy https://clojure.github.io/tools.build/clojure.tools.build.api.html#var-process

I adapted @borkdude’s version and works great

Alex Miller (Clojure team) 2021-09-07T11:14:42.092900Z

(b/process {:dir "target" :command-args ["unzip" "my.zip"]})

👍 1

I will need to have unzip locally

this is what I've been doing as well, but perhaps it's better to not rely on unzip to be installed, which isn't always the case, certainly not on Windows for example

👍 1

or some Alpine images / aarch64 devices

tar.gz is a better bet in this regard: tar seems to be available also on the above mentioned platforms (while tar doesn't have a built in JDK support, so shelling out is needed there, if you don't want to bring in libs)

Alex Miller (Clojure team) 2021-09-07T11:47:42.095500Z

I've added in io.github.clojure/tools.build {:git/tag "v0.2.2" :git/sha "3049217"}

❤️ 2

And io.github.seancorfield/build-clj {:git/tag "v0.1.3" :git/sha "26b884c"} is available with the tools.build dep bumped to v0.2.2 -- thanks for the continued, swift work on tools.build!

1