anchore / binny

Manage a directory of binaries without a package manager
Apache License 2.0
21 stars 1 forks source link

Support multiple install methods for a single binary #28

Open kzantow opened 2 months ago

kzantow commented 2 months ago

In order to make more flexible binny configurations, while remaining performant, it would be useful to support multiple installation methods.

An example that needs this is: installing gh on FreeBSD. Today, there is no binary published for FreeBSD, so a user would need to use the go-install method for portability. However, the go-install method is slow since it needs to download all dependencies and run a complete go build. It would be preferable to attempt to download a binary using the github-release method, and if that failed to fall back to a go-install.