This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-04
Channels
- # announcements (7)
- # babashka (26)
- # babashka-sci-dev (19)
- # beginners (66)
- # calva (4)
- # clj-kondo (55)
- # cljs-dev (173)
- # cljsrn (17)
- # clojure (86)
- # clojure-art (3)
- # clojure-australia (1)
- # clojure-europe (24)
- # clojure-india (1)
- # clojure-nl (3)
- # clojure-uk (6)
- # clojured (5)
- # clojurescript (39)
- # cursive (8)
- # data-oriented-programming (20)
- # datomic (9)
- # emacs (10)
- # events (1)
- # figwheel-main (16)
- # fulcro (33)
- # gratitude (1)
- # helix (2)
- # hugsql (2)
- # jobs (2)
- # kaocha (4)
- # leiningen (5)
- # lsp (110)
- # malli (1)
- # missionary (17)
- # observability (3)
- # re-frame (10)
- # reagent (1)
- # reitit (7)
- # rewrite-clj (3)
- # shadow-cljs (63)
- # sql (19)
- # tools-build (74)
- # tools-deps (32)
- # transit (1)
- # xtdb (5)
Would the ability to tar and untar be a useful addition to the bb stdlib? I find myself needing to do a lot of (un)tarring myself when using bb in various infrastructure automation scenarios. Things like python and golang have tar inbuilt. I have to make sure tar is installed with bb and shell out.
Feels like going in the "batteries-included" spirit 😄
or maybe in babashka.fs? :thinking_face:
@rahul080327 does Java provide a tar implementation? I think not. But tar
is available on every major OS, so I think shelling out is pretty safe to do
yeah i dont think java does yet, hence my doubts of adding it too
I don't like pulling in another dependency but we could write a namespace or some functions around shelling out to it
yeah thats how i have been doing it so far and something like https://github.com/kamranzafar/jtar which i guess is the most used one is quite a heavy addition
i get stuck in alpine images mainly
I don't understand you're stuck if you can shell out to tar
? Or is tar not there in alpine by default?
yeah alpine doesnt include tar i think
yeah that how im doing it now. yeah not worth too much to have in bb
well as long as there is java stdlib support, it can be considered. thats the biggest hurdle in tar
like babashka.curl we could have a small ns around it but I'm not sure if it adds much value compared to shelling out
yeah not worth it til jdk has it i guess.