bindl-dev / bindl

Project-defined static binary manager.
https://bindl.dev
Apache License 2.0
7 stars 0 forks source link

✨ Storing multi-version programs #38

Closed wilsonehusin closed 2 years ago

wilsonehusin commented 2 years ago

What this PR does / Why we need it

Binaries in $PATH are now symbolic links which points to a checksum-included path of the real binary, just like Nix.

This means that in the event of a project having different versions of dependencies based on version control, re-downloading doesn't need to occur — instead, symbolic links just get re-pointed.

❯ ls -lah bin
total 10M
lrwxrwxrwx  1 wilson users  102 Mar 22 17:11 addlicense -> .bindl/programs/ac53b538d315abfb1c6e2cec5c6a7886397f1d1738a6b7abe6af2159ce614bee-addlicense/addlicense
drwxr-xr-x  3 wilson users 4.0K Mar 22 15:58 .bindl
-rwxr-xr-x  1 wilson users  10M Mar 22 17:09 bindl

Which issue(s) this PR fixes

Fixes #39