Skip to content

fix: resolve install.ps1 latest version without the GitHub API#560

Open
hiyochi wants to merge 1 commit into
colbymchenry:mainfrom
hiyochi:fix/install-ps1-github-api-ratelimit
Open

fix: resolve install.ps1 latest version without the GitHub API#560
hiyochi wants to merge 1 commit into
colbymchenry:mainfrom
hiyochi:fix/install-ps1-github-api-ratelimit

Conversation

@hiyochi
Copy link
Copy Markdown

@hiyochi hiyochi commented May 29, 2026

Problem

fixed install.sh to resolve the latest version via the web redirect instead of the GitHub API (rate-limited to 60 requests/hour per IP, returning 403 on shared hosts). The same fix was not applied to install.ps1, which still uses the API directly.

Fix

Port the same three optimizations from #336 to install.ps1:

  • Resolve "latest" from the releases/latest web redirect (github.com/<repo>/releases/latestBaseResponse.ResponseUri.../tag/vX.Y.Z) instead of the API — no token, no rate limit. Falls back to the API if the redirect can't be read.
  • Wrap both resolution attempts in try/catch so a network failure on one path doesn't abort the installer before the fallback runs.

Validation

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.

1 participant