Repository navigation
ref(cli): Drop the getsentry/cli upgrade fallback - #2516
Merged
Merged
Conversation
Upgrades now resolve only against getsentry/toolkit `cli@` releases and its GHCR nightlies. The getsentry/cli fallback only helped explicit downgrades to 0.45 or older: 0.45.0 already checks Toolkit first, so older installs upgrade on their own code. Without a second source, the resolver no longer probes the GitHub repo before nightly lookups, and the unprefixed-tag and `/releases/latest` paths are gone. The changelog "…and more" link now points at Toolkit's CLI releases instead of the archived getsentry/cli repo. Refs #1965 Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
BYK
approved these changes
Nov 26, 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.
Cleans up two leftovers from the getsentry/cli → getsentry/toolkit move (part of #1965).
Drop the getsentry/cli upgrade source
UPGRADE_SOURCESlisted Toolkit first and fell back to getsentry/cli (unprefixed tags,ghcr.io/getsentry/cli) on HTTP 404. 0.45.0, the last getsentry/cli release, already checks Toolkit first, so old installs upgrade fine on their own code. The fallback only served explicit downgrades to ≤0.45. Breaking for that case only:sentry cli upgrade 0.45.0(or older) now reports the version as not found.With one source left, the multi-source resolver goes away:
UPGRADE_SOURCES/PRIMARY_UPGRADE_SOURCE→ a singleUPGRADE_SOURCE.resolveUpgradeSource(probe each source, fall through on 404) →fetchUpgradeRelease(url, signal), which turns HTTP 404 intoUpgradeReleaseNotFoundErrorand every other failure into anUpgradeError.api.github.com/repos/<repo>before going to GHCR. That probe only existed to pick a source, and it cost one GitHub API call per nightly check./releases/latest, single-object release responses, andv-prefix stripping of release tags.standaloneVersionExists/nightlyVersionExistscollapse intoresolveExistingUpgradeVersion(version, source).ghcr.tscomments now sayghcr.io/getsentry/toolkit.Open question: the
UpgradeSourceparameter that delta-upgrade, ghcr, and release-notes pass around stays for now, defaulting toUPGRADE_SOURCE. Collapsing it into constants would touch most of the upgrade code, so it's left for a follow-up if we want it.Fix the changelog "…and more" link
The upgrade changelog's truncation line linked to https://github.com/getsentry/cli/releases, which is archived and stops at 0.45.0. It now links to Toolkit's CLI releases: https://github.com/getsentry/toolkit/releases?q=cli%40.
via @BYK.
--
View Session [Sentry]