Closed marcosnils closed 4 months ago
seems like in order to implement something like this, we'd need some sort of bin.lock file which contains at least the path, md5 and version of the binary. Otherwise, there's no way for bin
to know which "supposedly" is the current installed version of the binary.
As a stopgap, I can implement this feature relying in the hash
field of the config.json
file but it's not the best solution. This also made me realize that the current hash
field in the config.json
has never been properly implemented. I'll craft a PR to address both of this shortcomings as a first step and we can then move from there.
@einarpersson this should have been addressed in the new release v0.18. LMK if that works for you.
Keep in mind that running bin ensure
the first time will re-install all your current binaries to fix the incorrect hash
issue described in this commit: https://github.com/marcosnils/bin/pull/206/commits/02eb5bb0d4aea4fdfdb961999d7e67d694e420e1
@marcosnils Looks good so far, I'll let you know otherwise! Great work! 👏
from @einarpersson:
Opening this issue as a follow-up of https://github.com/marcosnils/bin/issues/204. As described in the title,
bin ensure
should also make all the binaries match the config file specs