bbin: Install any Babashka script or project with one command
- 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:
bbin
now follows the XDG Base Directory Specification.- The
BABASHKA_BBIN_FLAG_XDG
flag is no longer used. - If you're still using
~/.babashka/bbin/bin
,bbin
will print a warning.- To remove this warning, run
bbin migrate
for instructions on how to- run an automatic migration
- migrate manually
- revert to existing paths
- To remove this warning, run
- The
bbin ls
andbbin install
now print human-readable text by default.- The
BABASHKA_BBIN_FLAG_PRETTY_OUTPUT
flag is no longer used. - Pass in the
--edn
option to revert to the0.1.x
behavior.
- 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 ls
prints human readable text (@eval)- The new output format is currently disabled by default in
0.1.x
releases. - Set
BABASHKA_BBIN_FLAG_PRETTY_OUTPUT=true
to 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.0
release. - We're adding an
--edn
option to existingbbin
commands 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-info
version to0.1.0
- Fixes an error when encountering Git tags named without a
v
prefix (thanks @eval)
- Fixes an error when encountering Git tags named without a
- Upgrade dependency versions
- Validate
:bbin/bin
config - Add support for Git URLs without explicit lib name
- Run jars without process/exec (thanks @jeroenvandijk!)
- Replace
babashka.curl
withorg.httpkit.client
- Add opt-in flag for "Use Freedesktop specification for default paths"
- We're currently working on making
bbin
follow the Freedesktop spec more closely, which means we need to change the default bin path (#35) - In a future
0.2.0
release,bbin
will change its default bin path from~/.babashka/bbin/bin
to~/.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
~/.bbin
to~/.babashka/bbin
- Improve script readability
- Remove bash scripts
- Do not stringify args (#24) (thanks @borkdude!)
- Windows Support (thanks @bobisageek!)
- Bump
:min-bb-version
to0.9.162
- Add
bbin version
- Add
bbin --version
- Fix
bbin commands
- Check for reserved script names
- Support Git and local installs when
bb.edn
file is missing
- Add
:min-bb-version
tobb.edn
- Add support for
:mvn/version
coordinates - Use
:bbin/url
instead of:http/url
- Use
deps.edn
for deps instead ofbb.edn
- First release