zyedidia / eget

Easily install prebuilt binaries from GitHub.
MIT License
976 stars 40 forks source link

Improve documentation for upgrade_only #115

Open gdevenyi opened 2 days ago

gdevenyi commented 2 days ago

From this section: https://github.com/zyedidia/eget#does-eget-keep-track-of-installed-binaries

if so it will only download a new version if the GitHub release is newer than the binary on your file system.

The documentation fails to explain how "newer than" is determined.

dflock commented 16 hours ago

It's based on timstamp, afaict. That would be the simplest interpretation of 'newer' - and is what the code actually does: https://github.com/zyedidia/eget/blob/master/eget.go#L270

Getting a version without keeping state would mean trying to run <binary> --version and capturing the output, hoping that's safe, etc... which is a whole minefield.