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

Commits on Sep 27, 2022

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

    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
    ZauberNerd committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    2b51f26 View commit details
    Browse the repository at this point in the history