marcosnils / bin

Effortless binary manager
MIT License
640 stars 44 forks source link

fix: use first github release in the list as latest when latest is not available #178

Open matheuscscp opened 8 months ago

matheuscscp commented 8 months ago

Hi @marcosnils!

I wasn't being able to install or update github.com/weaveworks/tf-controller, so I found this fallback solution for GitHub latest releases which fixes the problem for this repo. The repo does not publish a "latest reference" release, which is what GetLatestRelease() looks for. But GitHub has this ListReleases() paginated API which lists all the releases starting from the latest (in the common sense meaning of the word, not the "latest reference").

Kind regards,

matheuscscp commented 8 months ago

oh, sounds like this is a duplicate of #87

and relates to #86