This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-17
Channels
- # ai (115)
- # announcements (8)
- # babashka (26)
- # beginners (7)
- # biff (8)
- # calva (1)
- # cider (10)
- # clerk (2)
- # clj-together (11)
- # clojure (26)
- # clojure-boston (1)
- # clojure-denmark (3)
- # clojure-europe (23)
- # clojure-nl (1)
- # clojure-norway (33)
- # clojure-uk (3)
- # clojurescript (14)
- # conjure (3)
- # cursive (65)
- # emacs (10)
- # events (18)
- # exercism (6)
- # honeysql (14)
- # hyperfiddle (11)
- # kaocha (6)
- # nbb (17)
- # off-topic (58)
- # pathom (5)
- # reagent (28)
- # reitit (1)
- # releases (1)
- # sci (3)
- # shadow-cljs (22)
- # xtdb (29)
In building babashka, I see the following reports in my terminal
Warning: profile :feature/xml not found.
Warning: profile :feature/yaml not found.
Warning: profile :feature/csv not found.
Warning: profile :feature/transit not found.
Warning: profile :feature/httpkit-client not found.
Warning: profile :feature/httpkit-server not found.
Warning: profile :feature/core-match not found.
Warning: profile :feature/hiccup not found.
Warning: profile :feature/test-check not found.
Warning: profile :feature/selmer not found.
Warning: profile :feature/logging not found.
Warning: profile :feature/priority-map not found.
Should I worry about this? I did nothing more than ./script/uberjar
and ./script/compile
The first ever #CLX41ASCS conf is happening on June 10th 2023 in Berlin. CfP is now open: https://babashka.org/conf/


I have tried (spit file (:body response))
, but the written file seams corrupted. Do I need to do some decoding?
Can I create a binary from my bb script? Or what is the best way to make it available to colleagues?
@U2ERGD6UD The best way is to let your colleagues also install babashka.
You can make your script or project available via bbin:
https://github.com/babashka/bbin
or just as a library you can use in your bb.edn
(this works the same as making libraries for regular Clojure)
It is possible to make a self-contained binary: https://github.com/babashka/babashka/wiki/Self-contained-executable but I don't recommend going that route since you would need to create binaries for each OS etc. and this gets old fast
Another way involves making an uberjar, like its done here: https://github.com/eval/deps-try/releases/tag/v0.4.0 and then you can publish it to homebrew like this: https://github.com/eval/homebrew-brew/blob/main/Formula/deps-try%400.3.9.rb
(kudos @U04V6FEES for the homebrew setup there, looks like something I might want to borrow from)
I will try bbin
. Can you recommend an example git repository containing a single script which I could use as a template?
Your tools
project has no deps.edn
and no bb.edn
- so cider-jack-in-clj
won't work, correct?
I don't have this command. Seams I have to upgrade. But I connected successfully to bb --nrepl-server
.
And now I am done: https://github.com/witek/tools
Thank you for your help!
Can you use bb w/ a shebang and invoke the main method of the file? e.g., I have a file my_script.clj that looks like this:
#!/usr/bin/env bb
(defn -main
[& args]
(println "hello"))
And Iโd like to run the -main
function automatically when I invoke it like so ./my_script.clj
without a top-level (-main)
call. Possible?I think the recommended way would be <https://book.babashka.org/#main_file> - this puts a when around the call to -main
(in case that's the reasoning behind the ask).