Repository navigation
fix(pnpm): reuse cached builds in the engine rebuild - #10788
Merged
zkochan merged 2 commits intoOct 11, 2026
Merged
Conversation
fusepm rebuilds the pending packages of every capsule with skipIfHasSideEffectsCache set, so that a package whose build the side-effects cache holds is restored instead of built again. lynx dropped the option, as the engine had none until @pnpm/napi 12.11.0, and every capsule ran the install scripts of packages like esbuild again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR Summary by QodoForward side-effects cache option to pnpm rebuild
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can tweak Display settings with a live preview to see your comment before it ships |
GiladShoham
approved these changes
Oct 11, 2026
12.12.1 includes pnpm/pnpm#16843: a rebuild with skipIfHasSideEffectsCache skips a package whose cached build changed nothing inside it, such as ssh2 when its optional native binding cannot compile. Before, such a package ran its install script in every fusepm capsule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zkochan
enabled auto-merge (squash)
October 11, 2026 11:31
|
Code review by qodo was updated up to the latest commit 43ac490 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
rebuildpassesskipIfHasSideEffectsCachetonodeApi.rebuild. fusepm callsresult.rebuild({ pending: true, skipIfHasSideEffectsCache: true })after mounting each capsule, so that a package whose build the side-effects cache already holds is restored instead of built again.lynx.tsdropped the option (its comment said the engine had no such selector, which was true until@pnpm/napi12.11.0), so every capsule ran the install scripts of packages like esbuild and ssh2 again. In a ripple sign that printed dozens of "ssh2: Running install script..." lines per capsule.@pnpm/napi12.12.1 includes fix(building): let a rebuild skip a cached build that changed nothing pnpm/pnpm#16843. In a container without a build toolchain, ssh2's install script changes nothing, and the engine's rebuild did not count such an empty cache entry as built, so ssh2 ran its script in every capsule. With a local build of that fix, ssh2's script ran once and was skipped in the later capsules.pnpm-lock.yamlchanges only in the napi version entries.🤖 Generated with Claude Code