babashka / bbin

Install any Babashka script or project with one command
MIT License
139 stars 9 forks source link

No need to wrap git binary with process/exec #50

Open jeroenvandijk opened 1 year ago

jeroenvandijk commented 1 year ago

Like #46 scripts installed from a git dependency don't have to be called via process/exec. Instead, they can be called directly in combination with babashka.deps/add-deps.

The time savings depend on your local hardware, but should be something like:

time bb -e 'nil'
bb -e 'nil'  0.02s user 0.01s system 83% cpu 0.036 total

(Some background in a recent discussion around Carve)

borkdude commented 1 year ago

This may need a change in bb, allowing you to call bb --deps-root ... programmatically instead of from the CLI, for projects that are composed of multiple dependencies (like carve)

borkdude commented 1 year ago

Or perhaps adding the project as :local/root works...

jeroenvandijk commented 1 year ago

I think it works already, but need to fix some tests