Skip to content

fix(cli): Drop head -n 1 from the wrangler wizard's release version - #2600

Merged
BYK merged 2 commits into
mainfrom
byk/drop-head-n1-propose-version
Nov 30, 2026
Merged

BYK merged 2 commits into
mainfrom
byk/drop-head-n1-propose-version

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Refs #2531

The wrangler source maps wizard wrote $(sentry release propose-version | head -n 1) into the project's scripts, because propose-version printed a "Detected from ..." hint on stdout after the version. #2594 moved hints off piped stdout, so $(sentry release propose-version) now captures only the version. Without head, a failing propose-version no longer has its exit code hidden.

Risk: the wizard port (#2529) and the hint fix ship together in cli 0.52. A project that keeps an older sentry package installed (it declines the wizard's update prompt) would still capture the hint in the release version.

via @BYK.

--

View Session [Sentry]

sentry release propose-version now prints its hint on stderr when stdout
is piped (#2594), so the generated scripts capture the
version directly. Without the pipe, a failing propose-version no longer
has its exit code hidden by head.
@sentry-junior
sentry-junior Bot requested a review from BYK November 30, 2026 11:22
@vercel

vercel Bot commented Nov 30, 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 Nov 30, 2026 12:17pm UTC
sentry-local Ready Ready Preview Nov 30, 2026 12:17pm UTC

Request Review

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 30, 2026
@BYK
BYK enabled auto-merge November 30, 2026 12:00
…ose-version

# Conflicts:
#	packages/cli/src/lib/wizard/sourcemaps/tools/wrangler.ts
#	packages/cli/test/lib/wizard/sourcemaps/tools/wrangler.test.ts
@BYK
BYK added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit fba10a1 Nov 30, 2026
32 checks passed
@BYK
BYK deleted the byk/drop-head-n1-propose-version branch November 30, 2026 12:36

This branch was successfully deployed

2 active deployments
Preview – sentry-local — 845afa23 Deployed Nov 30, 2026 by vercel[bot]
Preview – cli — 845afa23 Deployed Nov 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant