You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Cache package is a bit messy at the moment, as it handles both
the installer use-case, where we don't want to download anything, and
the 'built from git' use-case, where it will automatically download
files.
The difference between the 2 can be found in `EnsureIsCached()` which
will always return an error if IsInstaller() is true, and which will
download the binary if not.
The 'New()' interface is influenced by the 'download missing binary'
use-case, as we pass it an executable name, and then the code will turn
it into a full path by prepending constants.BinDir() when needed.
This in particular means that all the binaries must be in the same
directory. This does not have to be true when using an installer.
This commit reworks this by allowing to pass a full path instead of just
the binary name.
0 commit comments