babashka 2026-06-03

ENV BABASHKA_PRELOADS='(System/setProperty "javax.net.ssl.trustStore" (str (System/getenv "JAVA_HOME") "/lib/security/cacerts"))'
confirmed working, thank you! (context is a dockerfile)

🎉 1

Here is a snippet for anyone coming by:

ENV CLJ_JVM_OPTS="-Djavax.net.ssl.trustStore=$JAVA_HOME/lib/security/cacerts"
ENV BABASHKA_PRELOADS='(System/setProperty "javax.net.ssl.trustStore" (str (System/getenv "JAVA_HOME") "/lib/security/cacerts"))'
If you have your java keystore set up properly, this should take care of everything bb

Sweet. We should document this on the wiki probably

excellent!

👍 1

Ever wanted to run a remote Babashka script using the bb version released on christmas eve 2024, with a one-liner?!?

$ $(make -f <(curl -sL ) bb BABASHKA-VERSION=1.12.196) <(curl -sL ) babashka
0AB318BE3A646EEB1E592781CBFE4AE59701EDDF

🎄 2
1

from some feedback of @imre I changed the dialect cli runner to run any dialect command. not just start a repl. (that's the default for most)

He wanted it for sharing issue repros on specific bb versions.

Works nicely, thank you!

I wish there was an invocation that handled fish shell the same as bash/zsh.

actually...

@imre Try this in fish:

bash -c '$(make -f <(curl -sL ) bb BABASHKA-VERSION=1.12.196) <(curl -sL ) babashka'

Did that already and it works

run bash --version please

Not at my laptop now but will do

not sure if process sub works on macos's /bin/bash

Makes might assert bash 4.2. It requires a bash in the PATH

oh that's good

; bash -c '$(make -f <(curl -sL ) bb BABASHKA-VERSION=1.12.196) <(curl -sL ) babashka'
0AB318BE3A646EEB1E592781CBFE4AE59701EDDF
# 🐟 ~ [⏱ 5s]
; bash --version
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin24)
Copyright (C) 2007 Free Software Foundation, Inc.

yep. works under zsh and 2007 bash!

the bash -c '...' is the portable way to share. I'll note that on the web page

the hard thing to do (at least for me so far) is to assert GNU make.

luckily macos /usr/bin/make is GNU

ingy@mmarm ~ % which -a make
/usr/bin/make
ingy@mmarm ~ % make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.