Skip to content

docs(cli): Document Homebrew tap trust and the Docker 3 tag for v3 users - #2928

Merged
BYK merged 2 commits into
mainfrom
docs/cli-v3-homebrew-docker
Dec 5, 2026
Merged

BYK merged 2 commits into
mainfrom
docs/cli-v3-homebrew-docker

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Do not merge until getsentry/sentry-cli:3 exists on Docker Hub. The doc points v3 users at that tag, which doesn't exist yet.

Homebrew 6 and later don't follow the sentry-cli → sentry formula rename in getsentry/tools under tap trust. The migration guide said brew update moves installs to v4 and brew pin sentry-cli keeps v3, which isn't what happens now:

# before
$ brew install getsentry/tools/sentry-cli
Error: Refusing to load formula getsentry/tools/sentry from untrusted tap getsentry/tools.
$ brew upgrade        # existing sentry-cli install: skipped, stays on 3.8.2

# after (documented)
$ brew install getsentry/tools/sentry      # v4, trusts the formula itself
$ brew install --cask sentry-cli           # stay on v3 (homebrew/cask, 3.8.2)

The Docker section now points v3 users at getsentry/sentry-cli:3 and shows v4 replacements for the two patterns that broke when latest moved to the distroless image:

# before
COPY --from=getsentry/sentry-cli /bin/sentry-cli /usr/local/bin/sentry-cli
# after
COPY --from=getsentry/sentry-cli:3 /bin/sentry-cli /usr/local/bin/sentry-cli   # v3
COPY --from=getsentry/sentry-cli /usr/local/bin/sentry /usr/local/bin/sentry   # v4

GitLab CI jobs that use the image get a v3 (:3) and a v4 (npx sentry@4 in a node image) example, since v4 has no shell.

The "Where v3 was published" section also says what sentry-cli does since #2929: the v4 binary run as sentry-cli and PyPI's sentry-cli command print that the command is now sentry, link the guide and the v3 pins, and exit 1.

via @BYK.

--

View Session [Sentry]

Homebrew 6 and later don't follow the sentry-cli -> sentry formula rename
under tap trust, so the old name fails to install and existing installs stay
on 3.8.2. Point v4 users at the full formula name and v3 users at the
sentry-cli cask. In the Docker section, point v3 users at
getsentry/sentry-cli:3 and show COPY and GitLab CI examples for v4, which
has no shell.

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@sentry-junior
sentry-junior Bot requested a review from BYK December 5, 2026 04:25
@vercel

vercel Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Dec 5, 2026 4:55am UTC
1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Dec 5, 2026 4:55am UTC

Request Review

The v4 binary run as sentry-cli and the PyPI sentry-cli command print a
rename notice with the v3 pins and exit 1 (#2929).

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@vercel
vercel Bot temporarily deployed to Preview – sentry-local December 5, 2026 04:55 Inactive
@BYK
BYK added this pull request to the merge queue Dec 5, 2026
Merged via the queue into main with commit 7bb907d Dec 5, 2026
26 of 27 checks passed
@BYK
BYK deleted the docs/cli-v3-homebrew-docker branch December 5, 2026 07:42

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – cli — 2fe95a03 Deployed Dec 5, 2026 by vercel[bot]
Preview – sentry-local — 2fe95a03 Deployed Dec 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant