is there any interest to provide an unzip next to zip https://github.com/clojure/tools.build/blob/master/src/main/clojure/clojure/tools/build/tasks/zip.clj ?
Sure, there actually is one buried in the utils, just need to clean up the api etc
@eugen.stan fwiw I've also got one here, which you can copy over if you want. https://github.com/borkdude/glam/blob/b1d59a5c67aa6ca1e5d04340d4b1c0bc60e8c6a6/src/glam/impl/impl.clj#L35
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?
I'll see if I can add it pretty quickly
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
(b/process {:dir "target" :command-args ["unzip" "my.zip"]})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
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)
I've added in io.github.clojure/tools.build {:git/tag "v0.2.2" :git/sha "3049217"}
https://clojure.github.io/tools.build/clojure.tools.build.api.html#var-unzip
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!