Is there an environment variable where you can specify args bb should always take when invoked? I find myself needing to explicitly provide - more and more often for corp infra reasons
looking for something akin to CLJ_JVM_OPTS
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.
gotcha, thanks
I wonder if graalvm native-image has something similar
you can find all the options via bb --help
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[$✔] 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))}