babashka

imre 2026-06-03T08:27:34.431119Z

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
borkdude 2026-06-03T08:30:36.041039Z

awesome!

imre 2026-06-03T08:41:27.793099Z

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

borkdude 2026-06-03T08:42:08.273119Z

Sweet. We should document this on the wiki probably

borkdude 2026-06-03T08:42:23.712359Z

If you have some time: https://github.com/babashka/babashka/wiki/

borkdude 2026-06-03T08:59:07.474179Z

excellent!

👍 1
Ingy döt Net 2026-06-03T17:43:11.933869Z

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
neumann 2026-06-03T18:29:05.447749Z

Neat!

Ingy döt Net 2026-06-03T18:31:35.749039Z

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)

Ingy döt Net 2026-06-03T18:32:18.558359Z

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

imre 2026-06-03T18:32:58.882169Z

Works nicely, thank you!

Ingy döt Net 2026-06-03T18:33:50.177599Z

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

Ingy döt Net 2026-06-03T18:34:30.949779Z

actually...

Ingy döt Net 2026-06-03T18:35:53.373269Z

@imre Try this in fish:

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

imre 2026-06-03T18:37:21.368059Z

Did that already and it works

Ingy döt Net 2026-06-03T18:37:44.539119Z

run bash --version please

imre 2026-06-03T18:38:13.430899Z

Not at my laptop now but will do

Ingy döt Net 2026-06-03T18:38:52.993779Z

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

imre 2026-06-03T18:39:14.207889Z

It does for me

Ingy döt Net 2026-06-03T18:39:54.473069Z

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

Ingy döt Net 2026-06-03T18:40:06.112009Z

oh that's good

imre 2026-06-03T18:43:04.920049Z

; 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.

Ingy döt Net 2026-06-03T18:47:43.276809Z

yep. works under zsh and 2007 bash!

Ingy döt Net 2026-06-03T18:48:26.605759Z

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

Ingy döt Net 2026-06-03T18:49:51.477709Z

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

Ingy döt Net 2026-06-03T18:52:00.596309Z

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.