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

Fall back to downloading latest version from volta.sh on rate-limit #111

Merged
merged 1 commit into from
Oct 3, 2022

Conversation

ZauberNerd
Copy link
Contributor

The GitHub.com server returns a 403 or 429 status code in case of rate- limiting.
This commit adds a check for those status codes and tries to fetch the latest volta version from https://volta.sh/latest-version instead.

The implementation is somewhat analog to how setup-node is implemented:

Fixes: #108

The GitHub.com server returns a 403 or 429 status code in case of rate-
limiting.
This commit adds a check for those status codes and tries to fetch the
latest volta version from https://volta.sh/latest-version instead.

The implementation is somewhat analog to how setup-node is implemented:
- https://github.com/actions/setup-node/blob/9f3a02bbd17adc05b078145bb8f676c84be77e89/src/installer.ts#L109-L129

Fixes: volta-cli#108
@rwjblue rwjblue added the bug Something isn't working label Oct 3, 2022
@rwjblue rwjblue merged commit 3e1b128 into volta-cli:master Oct 3, 2022
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.

Using volta-cli/action on GitHub Enterprise Server causes frequent rate-limits with no fallback
2 participants