Repository navigation
Conversation
…--latest The daily update-lockfile job fails with ERR_PNPM_UNSUPPORTED_ENGINE on [email protected]. The source is node-gyp, declared directly in pnpm11/pnpm/package.json and therefore missed by the catalog-oriented sweep in #13253: `pnpm update --latest` bumps it 12.4.0 -> 13.0.1, and node-gyp 13 -- along with its nopt 10 and which 7 dependencies -- requires Node.js ^22.22.2 || ^24.15.0 || >=26.0.0, which engineStrict correctly rejects against nodeVersion 22.13.0. Replaying the job locally (lockfile deleted, `pnpm update --recursive --latest`) confirms node-gyp was the last floor-blocked dependency: with it held back, resolution completes with no engine errors and node-gyp stays at 12.4.0. The replay stops at the next, separate blocker instead -- ERR_PNPM_IGNORED_BUILDS for [email protected], the runtime: specifier fix in #13250. The same replay also showed three catalog entries being bumped past pins their comments say must hold: `@types/node` (22.x, matching the supported Node.js floor), bole (5.x, so the published `@pnpm/logger`'s CJS bole shares the output registry under Jest) and tempy (3.0.0, whose later versions deadlock the bundled binary at startup). Only the engine-related pins were enforced, so those three are added to the list as well. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
📝 WalkthroughWalkthroughExpanded ChangesDependency update configuration
Estimated code review effort: 2 (Simple) | ~5 minutes Possibly related PRs
Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoHold back node-gyp and additional pinned deps from pnpm update --latest
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Confidence Score: 5/5The PR appears safe to merge with no actionable defects identified. The workspace configuration parser and recursive update path consume Reviews (1): Last reviewed commit: "chore: hold back node-gyp and the commen..." | Re-trigger Greptile |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pnpm-workspace.yaml`:
- Around line 552-574: Update the node-gyp dependency declaration in
pnpm11/pnpm/package.json to an exact 12.3.0 version so pnpm update --latest
cannot resolve it to 13.x. Keep the existing update.ignoreDeps entry unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 49253a31-63d4-4222-b709-64ca5f2995c4
📒 Files selected for processing (1)
pnpm-workspace.yaml
| # Dependencies deliberately held back, which `pnpm update --latest` (run by the | ||
| # update-lockfile workflow) would otherwise bump. Most of them are packages | ||
| # whose newer versions require a Node.js version above pnpm's supported floor | ||
| # (>=22.13); the comment at each catalog entry above records the reason. node-gyp | ||
| # is not in the catalog: it is declared directly in pnpm11/pnpm/package.json, and | ||
| # node-gyp 13 (with its nopt 10 and which 7 dependencies) requires Node.js | ||
| # ^22.22.2 || ^24.15.0 || >=26.0.0. | ||
| update: | ||
| ignoreDeps: | ||
| - '@babel/core' | ||
| - '@babel/plugin-transform-explicit-resource-management' | ||
| - '@types/node' | ||
| - bin-links | ||
| - bole | ||
| - cspell | ||
| - ini | ||
| - libnpmpublish | ||
| - node-gyp | ||
| - normalize-package-data | ||
| - npm-packlist | ||
| - npm-registry-fetch | ||
| - ssri | ||
| - tempy |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -eu
rg -n -C 3 'pnpm[[:space:]]+update|update-lockfile' \
--glob '*.yml' --glob '*.yaml' --glob '*.json' .
rg -n -C 2 '"node-gyp"[[:space:]]*:' \
--glob 'package.json' --glob 'pnpm-lock.yaml' .Repository: pnpm/pnpm
Length of output: 1064
Pin node-gyp exactly in pnpm11/pnpm/package.json.
pnpm update --latest can resolve node-gyp to 13.x when only the caret ^12.3.0 is declared, while update.ignoreDeps only makes pnpm update skip unscoped updates; it does not enforce this version constraint. Add an exact node-gyp version here or make explicit use of that constraint in the workflow.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@pnpm-workspace.yaml` around lines 552 - 574, Update the node-gyp dependency
declaration in pnpm11/pnpm/package.json to an exact 12.3.0 version so pnpm
update --latest cannot resolve it to 13.x. Keep the existing update.ignoreDeps
entry unchanged.
Source: Path instructions
Summary
The daily update-lockfile job fails with
ERR_PNPM_UNSUPPORTED_ENGINEon[email protected](run 30036170950). The culprit isnode-gyp: it is declared directly inpnpm11/pnpm/package.json, so the catalog-oriented sweep in #13253 missed it.pnpm update --latestbumps it 12.4.0 → 13.0.1, and node-gyp 13 — together with itsnopt10 andwhich7 dependencies — requires Node.js^22.22.2 || ^24.15.0 || >=26.0.0, whichengineStrictcorrectly rejects againstnodeVersion: 22.13.0.Overrides would not help here: the bump is of a direct dependency, and pinning
whichback would still leave node-gyp 13 and nopt 10 failing the same check (the local replay hits[email protected]next).Verified by replaying the job locally (lockfile deleted,
pnpm update --recursive --latest, asrefresh-lockfile: truedoes). Withnode-gypheld back, resolution completes with no engine errors and node-gyp stays at 12.4.0 — it was the last floor-blocked dependency for today's registry state. The replay then stops at the next, separate blocker:ERR_PNPM_IGNORED_BUILDSfor[email protected], theruntime:specifier bug fixed by #13250. This PR therefore does not make the job green on its own — that also needs #13250 to land, ship in an alpha, and have the pin on main bumped to it.The same replay showed three catalog entries being bumped past pins their own comments say must hold, because only the engine-related ones were listed:
@types/node— kept on 22.x to match the supported Node.js floor (replay bumped it to ^26.1.1).bole— kept on 5.x so the published@pnpm/logger's CJS bole shares theglobalThis.$$boleoutput registry under Jest (replay bumped it to ^6.0.6).tempy— kept at 3.0.0, since later versions deadlock the bundled binary at startup (replay bumped it to 3.2.0).They are added to the list too, so the pins are enforced rather than only documented.
Note: #13250 carries an overlapping list under the older
updateConfig.ignoreDependencieskey; whichever lands second will need to reconcile with theupdate.ignoreDepsblock on main.Squash Commit Body
Checklist
pnpm/port, or the description notes what still needs porting.(Repository configuration only — no code in either stack.)
pnpm changeset) if this PR changes any publishedpackage. (No published package changes.)
Written by an agent (Claude Code, claude-opus-4-8).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit