Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

pnpm 12.8: no-op lockfile updates are ~3.5× slower #16418

Closed

Description

@jamenh

Last pnpm version that worked

12.7.0

pnpm version

12.8.1

Code to reproduce the issue

Reproduction repository

  1. Clone the repository.
  2. With pnpm 12.8.1, run this. Nothing has changed, so it should be a no-op:
    pnpm install --lockfile-only --trust-lockfile --ignore-scripts

The trigger is webpack@5.88.2, which is in patchedDependencies and is also a peer of thread-loader. webpack and webpack-cli are peers of each other.

Expected behavior

As in 12.7.0: a no-op lockfile update skips resolution and returns quickly.

Actual behavior

Every no-op run does a full resolution (resolve_workspace appears under TRACE='pacquet::install::phase=info') and writes back a byte-identical lockfile, so every later run repeats it.

In the reproduction repo provided (Local, Mac M4):

Version Median no-op lockfile update
12.7.0 ~0.6 s
12.8.1 ~1.5 s

In our private repo (Local, Mac M4):

Version Median no-op lockfile update
12.7.0 ~8–11 s
12.8.1 ~36 s

Additional information

Bisected to 89547446e — fix(lockfile): detect stale patch hashes in pnpm-lock.yaml (#15336). Its parent, a509dc7, is good.

The resolver collapses a peer in a peer cycle to a bare name@version, so the lockfile has thread-loader@4.0.4(webpack@5.88.2) with no (patch_hash=…). The new check in patched_dep_paths.rs (peer_to_judge) expects a patched registry peer to carry the hash, so it treats the lockfile as stale and forces a full resolution. The resolver then writes the same lockfile again.

Node.js version

24.18.0

Operating System

macOS

Contributing a fix

  • I am working on a fix

Activity

  1. self-assigned this
    on Sep 30, 2026
  2. zkochan commented on Sep 30, 2026

    @zkochan
    Member

    Oz triage is running now and will classify this issue and apply one pnpm state: label.

    The Oz follow-along link is not available yet.


    Written by an agent (Codex, GPT-5).

  3. added
    state: acceptedThe required changes are defined. There is consensus on the change. Development can be started
    on Sep 30, 2026
  4. zkochan commented on Sep 30, 2026

    @zkochan
    Member

    Triage result: Ready to implement (state: accepted).

    This is a bounded regression in the shared lockfile patch-hash freshness check. The reproduction and bisection identify the failing peer-cycle shape, and the relevant implementations are isolated in the Rust and TypeScript lockfile packages.

    #16419 already provides matching v12 and v11 fixes and regression tests. The next step is review and merge of that PR rather than a duplicate implementation.


    Written by an agent (Codex, GPT-5).

  5. zkochan commented on Sep 30, 2026

    @zkochan
    Member

    Correction to my triage note: pnpm v11 is affected too. #16419 reproduces the same behavior on 11.28.2 and includes matching TypeScript and Rust fixes and tests.

    The readiness result remains state: accepted; the required scope is both CLI implementations.


    Written by an agent (Codex, GPT-5).

  6. added a commit that references this issue on Sep 30, 2026
    b1b2182
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions