Skip to content

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

Closed
matheuscscp wants to merge 1 commit intomarcosnils:masterfrom
matheuscscp:improve-github-latest
Closed

fix: use first github release in the list as latest when latest is not available#178
matheuscscp wants to merge 1 commit intomarcosnils:masterfrom
matheuscscp:improve-github-latest

Conversation

@matheuscscp
Copy link
Contributor

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
Copy link
Contributor Author

matheuscscp commented Oct 14, 2023

oh, sounds like this is a duplicate of #87

and relates to #86

…t available

Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
@matheuscscp matheuscscp force-pushed the improve-github-latest branch from 6e7a26f to bda3f52 Compare October 14, 2023 14:18
@marcosnils
Copy link
Owner

closing since this didn't get too much traction and it has been stale for a while

@marcosnils marcosnils closed this Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants