Skip to content

Fall back to the releases/latest redirect in install.ps1 too - #40

Merged
imanimanyara merged 1 commit into
mainfrom
fix/install-ps1-rate-limit
Oct 3, 2026
Merged

imanimanyara merged 1 commit into
mainfrom
fix/install-ps1-rate-limit

Conversation

@imanimanyara

Copy link
Copy Markdown
Member

install.ps1 resolved the version through the GitHub API only, so a spent
unauthenticated rate limit (60 requests an hour per IP) failed the install on
Windows, as it did on macOS before #37. It now tries the API, then reads the
tag from the releases/latest redirect, with redirects disabled so the Location
header reads the same on PowerShell 5.1 and 7.

The Windows installer was parsed in CI and never run. The test job now runs it
on windows-latest twice: once as shipped, and once with the API URL broken so
the fallback is what resolves the version. The step refuses to run the second
case if the URL substitution matched nothing.

install.ps1 resolved the version through the GitHub API only, so a spent
unauthenticated rate limit (60 requests an hour per IP) failed the install on
Windows, as it did on macOS before #37. It now tries the API, then reads the
tag from the releases/latest redirect, with redirects disabled so the Location
header reads the same on PowerShell 5.1 and 7.

The Windows installer was parsed in CI and never run. The test job now runs it
on windows-latest twice: once as shipped, and once with the API URL broken so
the fallback is what resolves the version. The step refuses to run the second
case if the URL substitution matched nothing.
Copilot AI balanced review requested due to automatic review settings October 3, 2026 08:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@imanimanyara
imanimanyara merged commit 7b3d6ec into main Oct 3, 2026
9 checks passed
@imanimanyara
imanimanyara deleted the fix/install-ps1-rate-limit branch October 3, 2026 08:20
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