Skip to content

fix: update pnpm - #10738

Merged
zkochan merged 3 commits into
masterfrom
update-pnpm
Sep 30, 2026
Merged

zkochan merged 3 commits into
masterfrom
update-pnpm

Conversation

@zkochan

@zkochan zkochan commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Proposed Changes

Updates @pnpm/napi from 12.5.1 to 12.8.1. This fixes the intermittent ERR_PNPM_PACKAGE_MANAGER_UNSAFE_IMPORTER_PATH error that capsule installs throw for the .. importer, right after "Already up to date".

What caused it:

  • In each run, only the first capsule installed gets the capsules dir as a project, so only that capsule's lockfile records a .. importer. Which capsule goes first changes from run to run.
  • The capsule lockfiles are cached and copied back into the capsules on the next build.
  • When a capsule whose cached lockfile has .. is not first, .. is not passed in. The lockfile otherwise matches, so pnpm takes the frozen path ("Already up to date").
  • In 12.5.1 the frozen path installed every importer in the lockfile. .. is outside the capsule and was not passed in, so pnpm refused it.

pnpm 12.8.0 (pnpm/pnpm#15249) makes a frozen install use only the projects the caller passes in. A stale .. importer is skipped, and the install succeeds without writing outside the capsule. pnpm/pnpm#16401 adds a test for this scenario. With the 12.5.1 behavior it fails with the same error.

The lockfile is regenerated. Besides the @pnpm/napi bump, the peer suffixes of many entries change, for example the [email protected] suffix is dropped.


Written by an agent (Claude Code, claude-opus-5-5).

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Summary by Qodo

Update @pnpm/napi to 12.8.1

⚙️ Configuration changes 🕐 Less than 5 minutes

Grey Divider

AI Description

• Bump the workspace’s @pnpm/napi dependency from 12.5.1 to 12.8.1.
• Keep the lockfile aligned with the requested version.
High-Level Assessment

A direct version bump is appropriate for this narrowly scoped dependency update. No architectural alternative is warranted.

Files changed (2) +11404 / -9364

Other (2) +11404 / -9364
workspace.jsoncBump the workspace @pnpm/napi version +1/-1

Bump the workspace @pnpm/napi version

• Changes the dependency policy’s @pnpm/napi version from 12.5.1 to 12.8.1.

workspace.jsonc

pnpm-lock.yamlRecord the resolved @pnpm/napi version +11403/-9363

Record the resolved @pnpm/napi version

• The checked-out lockfile records @pnpm/napi at 12.8.1. The supplied diff contains no lockfile hunk, so its exact changes cannot be determined from the diff.

pnpm-lock.yaml

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can route each severity your way: inline, summary, both, or drop

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Previous reviews

Review updated until commit ab91118 ⚖️ Balanced

Results up to commit a28b40d


🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Qodo Logo

@zkochan
zkochan enabled auto-merge (squash) September 29, 2026 17:04
@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit d142ee7

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit ab91118

@zkochan
zkochan merged commit 2d12989 into master Sep 30, 2026
19 checks passed
@zkochan
zkochan deleted the update-pnpm branch September 30, 2026 01:45
@davidfirst

Copy link
Copy Markdown
Member

Heads-up: this bump carries a peak-memory regression that is invisible on master but red elsewhere.

@pnpm/napi needs ~200 MB more peak RSS for the same install from 12.8.0 on (flat across 12.5.1-12.7.0, held through 12.8.2). Bisected locally by swapping the addon with PNPM_NAPI_BINARY; the CLI does not reproduce it on the same dependency set, so it looks specific to the Node-API path.

It stays invisible here because master's e2e never installs a full env closure. On a branch where the envs are regular packages, each such install is already ~3.3 GB against a 4 GB container, so the extra ~200 MB tips it over: same commit, 12.8.2 -> 21 suites killed by the OOM killer, 12.5.1 -> 2432 tests, 0 failures, 0 OOM.

Filed upstream as pnpm/pnpm#16528. Nothing to change here - the bump fixes a real capsule bug - but worth knowing before e2e memory gets raised to compensate.

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.

3 participants