Skip to content

fix(migrate): treat a disabled pnpm release-age gate as no gate when writing age exemptions - #3602

Open
voidzero-bot[bot] wants to merge 1 commit into
mainfrom
triagebot/fix-3601
Open

voidzero-bot[bot] wants to merge 1 commit into
mainfrom
triagebot/fix-3601

Conversation

@voidzero-bot

@voidzero-bot voidzero-bot Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

A pnpm workspace that disables pnpm's release-age gate with minimumReleaseAge: 0 had nothing held back, yet vp migrate still wrote the ten Vite+ entries into minimumReleaseAgeExclude. Deleting the list did not stick either: the next vp migrate reported "Package manager settings configured", re-added the same ten lines, and the project never reached the "already using Vite+" fast exit.

Both the writer (rewritePnpmWorkspaceYaml) and the pending check (pnpmWorkspaceMinimumReleaseAgeExemptionsPending) gated on minimumReleaseAge key presence rather than its value, so 0 was treated as an enabled gate. This adds one shared pnpmAgeGateEnabled predicate used by both sites, matching the semantics pnpm itself (and Vite+'s installer override) applies: a positive value enables the gate, while 0, negative values, and absent/null values mean nothing is quarantined and there is nothing to exempt. An enabled gate (e.g. minimumReleaseAge: 1440) keeps receiving the exemptions as before.

Closes #3601

Automated triage bot fix (AI-assisted).

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://triagebot-fix-3601-viteplus-dev.voidzero-docs.workers.dev (commit 8e15b80)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://5424130c-viteplus-dev.voidzero-docs.workers.dev 8e15b80 2026-11-29T04:27:27.443Z Visit the dashboard ↗

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vp migrate writes minimumReleaseAgeExclude into a pnpm workspace that turns the age gate off with minimumReleaseAge: 0, and keeps re-adding it

0 participants