bbin: Install any Babashka script or project with one command
- Fix #78: Installation fails if $GITLIBS are set (@Ramblurr)
- Fix #98: main-opts is limited to two values?
- Fix #62: bbin ls is unnecessarily slow
- Fix #72: bbin install [LOCAL-FILE] should not be restricted to files with the .clj extension
BREAKING CHANGES:
bbinnow follows the XDG Base Directory Specification.- The
BABASHKA_BBIN_FLAG_XDGflag is no longer used. - If you're still using
~/.babashka/bbin/bin,bbinwill print a warning.- To remove this warning, run
bbin migratefor instructions on how to- run an automatic migration
- migrate manually
- revert to existing paths
- To remove this warning, run
- The
bbin lsandbbin installnow print human-readable text by default.- The
BABASHKA_BBIN_FLAG_PRETTY_OUTPUTflag is no longer used. - Pass in the
--ednoption to revert to the0.1.xbehavior.
- The
Changed paths:
- New:
- Scripts:
~/.local/bin - Cached JARs:
~/.cache/babashka/bbin/jars
- Scripts:
- Old:
- Scripts:
~/.babashka/bbin/bin - Cached JARs:
~/.babashka/bbin/jars
- Scripts:
Fixed issues:
- Fix #35: Use Freedesktop specification for default paths
- Fix #53: bbin should print human-readable text first and edn as an optional format
- Fix #65: BUG: uninstall not working for some scripts
- Fix #61: Disable
*print-namespace-maps*when printing EDN (@eval) - Upcoming fixes for #53: bbin should print human-readable text first and edn as an optional format
- #54:
bbin lsprints human readable text (@eval)- The new output format is currently disabled by default in
0.1.xreleases. - Set
BABASHKA_BBIN_FLAG_PRETTY_OUTPUT=trueto enable the new behavior. See the PR for updated docs. - Since changing the default output format is a breaking change, the flag will be removed in an upcoming
0.2.0release. - We're adding an
--ednoption to existingbbincommands to support raw data as output.
- The new output format is currently disabled by default in
- #54:
- Fix #57: escaping issue with local/root install on Windows
- Fix #52: git url install does not handle a dot in the name
- Bump
deps-infoversion to0.1.0- Fixes an error when encountering Git tags named without a
vprefix (thanks @eval)
- Fixes an error when encountering Git tags named without a
- Upgrade dependency versions
- Validate
:bbin/binconfig - Add support for Git URLs without explicit lib name
- Run jars without process/exec (thanks @jeroenvandijk!)
- Replace
babashka.curlwithorg.httpkit.client - Add opt-in flag for "Use Freedesktop specification for default paths"
- We're currently working on making
bbinfollow the Freedesktop spec more closely, which means we need to change the default bin path (#35) - In a future
0.2.0release,bbinwill change its default bin path from~/.babashka/bbin/binto~/.local/bin - For versions
>=0.1.4, the new default behavior can be enabled by setting an env variable:$ bbin bin /Users/rads/.babashka/bbin/bin $ BABASHKA_BBIN_FLAG_XDG=true bbin bin /Users/rads/.local/bin - The flag will not have any effect when used with
0.2.0. It's only for previewing the upcoming changes
- We're currently working on making
- Fix "local installs without aliases throw exception on Windows" (thanks @bobisageek!)
- Remove alpha status warning
- Add docs for all supported options
- Add support for overriding bbin root via env variables
- Change root dir from
~/.bbinto~/.babashka/bbin - Improve script readability
- Remove bash scripts
- Do not stringify args (#24) (thanks @borkdude!)
- Windows Support (thanks @bobisageek!)
- Bump
:min-bb-versionto0.9.162 - Add
bbin version - Add
bbin --version
- Fix
bbin commands - Check for reserved script names
- Support Git and local installs when
bb.ednfile is missing
- Add
:min-bb-versiontobb.edn - Add support for
:mvn/versioncoordinates - Use
:bbin/urlinstead of:http/url - Use
deps.ednfor deps instead ofbb.edn
- First release