rhysd / go-github-selfupdate

Binary self-update mechanism for Go commands using GitHub
https://godoc.org/github.com/rhysd/go-github-selfupdate/selfupdate
MIT License
597 stars 76 forks source link

Cannot get the latest release if releases are not in descending order #11

Closed rhysd closed 6 years ago

rhysd commented 6 years ago

If releases are not in descending order like following:

DetectLatest() cannot get the latest (v1.2.0). It returns v1.1.1 as the latest.