Skip to content

ci(release): Keep 3.x releases off the v4 npm, Homebrew, and Docker tags - #3520

Open
sentry-junior[bot] wants to merge 2 commits into
masterfrom
ci/release-v3-after-v4
Open

sentry-junior[bot] wants to merge 2 commits into
masterfrom
ci/release-v3-after-v4

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Companion to getsentry/toolkit#2514 and getsentry/toolkit#2513. From 4.0.0 on, getsentry/toolkit publishes Sentry CLI v4 under this repo's names: npm @sentry/cli, the getsentry/tools/sentry-cli formula, Docker Hub getsentry/sentry-cli:latest, PyPI sentry-cli, downloads.sentry-cdn.com/sentry-cli/, and registry app:sentry-cli. If this repo ships another 3.x release after that, three of its targets would undo it:

  • npm @sentry/cli: Craft publishes with npm's default latest tag unless checkPackageName is set. With it set, a release older than the current latest is tagged old.
  • brew: the target rewrites Formula/sentry-cli.rb, which would move brew upgrade users back to 3.x. 3.x now goes to a versioned formula, sentry-cli@3 (class SentryCliAT3). It installs sentry-cli and v4 installs sentry, so both can be installed side by side.
  • Docker Hub: the latest target always retags, with no version check. It now pushes getsentry/sentry-cli:3, a new moving tag for the newest 3.x. Docker Hub (release) still pushes the exact version.

The other targets are already safe for a 3.x release. PyPI and getsentry/pypi pick the highest version. The registry target moves latest.json only for a newer version. The gcs target writes only v3 file names, which v4 doesn't use.

via @BYK.

--

View Session [Sentry]

getsentry/toolkit publishes Sentry CLI v4 as npm `@sentry/cli` and as the
`getsentry/tools/sentry-cli` formula. A later 3.x release from this repo
would otherwise take npm's `latest` tag and overwrite that formula.

Tag 3.x npm releases `old` when they are older than `latest`, and publish
the 3.x formula as `sentry-cli@3`.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@sentry-junior
sentry-junior Bot requested a review from BYK November 26, 2026 11:15
@BYK
BYK marked this pull request as ready for review November 26, 2026 11:21
@BYK
BYK requested review from a team and szokeasaurusrex as code owners November 26, 2026 11:21
@BYK
BYK enabled auto-merge (rebase) November 26, 2026 11:21
@BYK
BYK disabled auto-merge November 26, 2026 11:21
@BYK
BYK enabled auto-merge (rebase) November 26, 2026 11:22
getsentry/toolkit pushes Sentry CLI v4 to getsentry/sentry-cli:latest. A
later 3.x release would move `latest` back to v3, so it moves `3` instead.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@sentry-junior sentry-junior Bot changed the title ci(release): Keep 3.x releases off the v4 npm tag and Homebrew formula ci(release): Keep 3.x releases off the v4 npm, Homebrew, and Docker tags Nov 26, 2026
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