fix(install): use release registry with GitHub fallback - #1637
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
BYK
approved these changes
Sep 28, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A fresh curl install can abort before downloading the CLI when GitHub's anonymous latest-release API returns 403. Resolve the latest stable version from Sentry's existing Craft release registry first, with GitHub as a fallback when the registry request fails, times out, or returns an invalid version.
Limit each metadata request to 10 seconds and show an actionable error with the existing
--versionoverride if both sources fail. Binary downloads continue to use versioned GitHub Releases assets.Test plan
pnpm exec vitest run test/lib/install-script.test.ts— 23 passed, including registry success with GitHub blocked, fallback, both sources failing, large responses, and pinned-version bypass.pnpm exec biome check --write test/lib/install-script.test.ts,bash -n packages/cli/install, andgit diff --checkpassed.--versionand--help.