Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GitHub API to retrieve latest release information. #101

Merged
merged 1 commit into from
Sep 1, 2022

Conversation

rwjblue
Copy link
Collaborator

@rwjblue rwjblue commented Aug 31, 2022

Previously we were requesting https://volta.sh/latest-version (which is what the curl based installer workflow documented on the homepage does). Unfortunately, we end up getting ECONNREFUSED from the service we use to host https://volta.sh.

This replaces the usage of https://volta.sh/latest-version with directly using GitHub's API at https://api.github.com/repos/volta-cli/volta/releases/latest. The new system is setup to retry 3 times and threads through the current $GITHUB_TOKEN (which should avoid throttling issues).

@rwjblue rwjblue added the bug Something isn't working label Aug 31, 2022
Previously we were requesting `https://volta.sh/latest-version` (which
is what the `curl` based installer workflow documented on the homepage
does). Unfortunately, we end up getting `ECONNREFUSED` from the service
we use to host https://volta.sh.

This replaces the usage of `https://volta.sh/latest-version` with
directly using GitHub's API at
`https://api.github.com/repos/volta-cli/volta/releases/latest`. The new
system is setup to retry 3 times **and** threads through the current
$GITHUB_TOKEN (which should avoid throttling issues).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants