babashka

imre 2026-03-25T13:24:28.154769Z

Is there an environment variable where you can specify args bb should always take when invoked? I find myself needing to explicitly provide -.ssl.trustStore=$JAVA_HOME/lib/security/cacerts more and more often for corp infra reasons

imre 2026-03-25T13:25:02.466629Z

looking for something akin to CLJ_JVM_OPTS

borkdude 2026-03-25T13:32:30.816959Z

Unfortunately not since those properties are parsed by GraalVM native-image before babashka's own logic kicks in. I guess you could write a wrapper bash script to do this.

imre 2026-03-25T13:42:56.351799Z

gotcha, thanks

imre 2026-03-25T13:43:13.704789Z

I wonder if graalvm native-image has something similar

borkdude 2026-03-25T13:43:35.423389Z

you can find all the options via bb --help

👍 1
pez 2026-03-25T14:07:35.590649Z

Sometimes (like when trying PR build of Instaparse) I want to use bb from the tip of the repo:

~/Projects/epupp  nucleus[$✔] 
❯ bbg bb   
bb status:
  Active:    babashka v1.12.215 (/opt/homebrew/bin/bb)
  Latest:    v1.12.217
  Master:    44d1c0dd6de0

~/Projects/epupp  nucleus[$✔] 
❯ bbg bb --use latest
Downloading bb for ref 'latest'...
Downloaded to: /tmp/bbg/bb
  Version: babashka v1.12.217
Installed to: /Users/pez/bin/bb
  Version: babashka v1.12.217
Note: Run `hash -r` or open a new terminal to update your shell's bb path.
bb status:
  Active:    babashka v1.12.217 (/Users/pez/bin/bb)
  System:    babashka v1.12.215 (/opt/homebrew/bin/bb)
  Latest:    v1.12.217
  Master:    44d1c0dd6de0

~/Projects/epupp  nucleus[$✔] 
❯ hash -r

~/Projects/epupp  nucleus[$✔] 
❯ bb --version
babashka v1.12.217

~/Projects/epupp  nucleus[$✔] 
❯ bbg bb --use master
Downloading bb for ref 'master'...
Downloaded to: /tmp/bbg/bb
  Version: babashka v1.12.218-SNAPSHOT
Installed to: /Users/pez/bin/bb
  Version: babashka v1.12.218-SNAPSHOT
Note: Run `hash -r` or open a new terminal to update your shell's bb path.
bb status:
  Active:    babashka v1.12.218-SNAPSHOT (/Users/pez/bin/bb)
  System:    babashka v1.12.215 (/opt/homebrew/bin/bb)
  Latest:    v1.12.217
  Master:    44d1c0dd6de0

~/Projects/epupp  nucleus[$✔] 
❯ bb --version       
babashka v1.12.218-SNAPSHOT

~/Projects/epupp  nucleus[$✔] 

pez 2026-03-25T14:11:35.256589Z

The bbg task:

bb {:doc "Manage bb binary [--download <ref> | --use <ref> | --unuse]"
      :task (bb-man/exec! (cli/parse-opts *command-line-args*
                                          bb-man/cli-spec))}