Skip to content

fix(lockfile): keep plain keys for packages of the default registry - #17581

Merged
zkochan merged 11 commits into
pnpm:mainfrom
TrevorBurnham:fix/builtin-alias-prefix-keys
Nov 3, 2026
Merged

zkochan merged 11 commits into
pnpm:mainfrom
TrevorBurnham:fix/builtin-alias-prefix-keys

Conversation

@TrevorBurnham

@TrevorBurnham TrevorBurnham commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #17575.

A project that installs through a mirror of the npm registry, such as Verdaccio or Artifactory, sets registry to the mirror. It often points the built-in npmjs alias at the mirror too, so that npmjs: specifiers don't bypass it.

Since #17259, any prefix the project sets qualifies every lockfile key of its registry. That mirror setup therefore re-keys every package in the lockfile as <name>@npmjs:<version>. The issue's minimal repro restates the built-in URL and has the same effect:

registries:
  https://registry.npmjs.org/:
    scopes: ['@']
    prefix: npmjs

This PR implements option 2 from the issue: packages from the default registry keep plain keys.

  • A declared prefix that names the default registry qualifies nothing, whatever its name (npmjs, gh or a custom one).
  • A <prefix>: specifier that resolves from the default registry gets a plain key when a plain range of the same name routes there too. It shares the plain entry, so foo@^1 and npmjs:foo@^1 record one packages: entry and one copy in node_modules/.pnpm.
  • A scoped package whose scope routes to another registry keeps a qualified key, because a plain key would read as resolved from the scope's registry. It carries the smallest prefix declared for the default registry, or the alias as written when none is.
  • Registries other than the default are unchanged. gh: keys stay gh:, and a declared prefix still qualifies every key of its registry.
  • The stale-key check now runs without a declared prefix too. The next non-frozen install re-keys entries that earlier versions qualified for the default registry, including a lockfile 12.16 rewrote. Tests in both stacks cover an install with no manifest change.
  • The workspace state records defaultRegistry (the normalized default registry URL) next to registryPrefixes, in both CLIs, because keys now depend on it. A state an older pnpm wrote has the prefixes without it, so a project that declares prefixes skips the repeat-install fast path once after upgrading and gets re-keyed. Changing registry while prefixes are declared is a registryPrefixes drift too.

An earlier revision of this PR special-cased the built-in alias names instead. That fixed the repro, but a dependency written as npmjs:foo then got a second entry beside the plain foo entry from the same registry. A custom prefix pointed at the default registry still re-keyed everything.

This reverses a documented choice of #17259: the docs said "one the default registry serves when the prefix points at it" is keyed with the prefix.

Changes

  • v12: DeclaredRegistryPrefixes takes the default registry and gains alias_key_prefix. The named-registry resolver, RegistryContext::rekeyed, and the lockfile-reuse range check use it. check_lockfile_registry_keys no longer returns early without a declared prefix. The revision-refresh pin compares registries instead of key prefixes, since a plain key can now stand for an alias-resolved package. pnpr gets the rule through the shared Config.
  • v11: pickDeclaredRegistryPrefix takes the registries and skips the default registry. A new pickAliasKeyPrefix mirrors alias_key_prefix. rekeyDepPath re-keys a qualified key to plain, and findOutdatedRegistryKey checks qualified keys without a declared prefix.
  • v12 and v11 workspace state: new defaultRegistry setting, recorded, compared, and reset together with registryPrefixes.
  • Tests that used the single mock registry as both the default and a prefixed registry now make the default registry the mock under another host name, which pnpm counts as another registry.
  • Docs for both versions describe the default-registry rule.

Squash Commit Body

Since pnpm/pnpm#17259, a prefix the project sets qualifies every lockfile
key of its registry. A project that sets registry to an npm mirror and
points npmjs at the same mirror, so npmjs: specifiers don't bypass it,
therefore had every package re-keyed as `<name>@npmjs:<version>`.

Packages from the default registry now keep plain keys, in both stacks:

- A declared prefix that names the default registry qualifies nothing.
- A <prefix>: specifier that resolves from the default registry gets a
  plain key when a plain range of the package's name routes there too,
  so it shares the plain entry. A scoped package routed elsewhere keeps
  the qualified key, since a plain key would read as resolved from the
  scope's registry.
- Other registries are unchanged: gh: keys stay gh:, and a declared
  prefix still qualifies every key of its registry.
- The stale-key check no longer skips projects without a declared
  prefix, so the next install re-keys default-registry entries that
  earlier versions qualified.
- The workspace state records the default registry with the declared
  prefixes, so a state an older pnpm verified does not let the
  repeat-install fast path keep those keys.

Closes pnpm/pnpm#17575.

Checklist

  • I checked the referenced issue and verified that none of the PRs
    already linked to it solves it.
  • New features are implemented only in the Rust pnpm v12 CLI. Bug fixes
    are implemented in every affected version.
  • Added a changeset (pnpm changeset) if this PR changes any published
    package. Keep it short and written for pnpm users — it becomes a release note.
  • Added or updated tests.
  • Updated the documentation if needed.

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

Summary by CodeRabbit

  • Bug Fixes
    • Packages resolved through the default registry now use plain lockfile keys, including when reached through a registry alias or prefix.
    • Dependencies routed to the same non-default registry share consistent lockfile keys, whether specified with a prefix or a plain version range.
    • Installs update outdated lockfile keys when registry settings change. Workspace state also accounts for the default registry when checking whether those keys are current.
  • Documentation
    • Clarified how registry routing and aliases affect lockfile keys.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Walkthrough

The change updates registry-prefix selection, lockfile re-keying, and lockfile freshness checks in Rust and TypeScript. Default-registry packages use plain keys, including when reached through a prefix mapped to that registry. Workspace state records the default registry alongside registry prefixes.

Changes: Registry-aware lockfile keys

Layer / File(s) Summary
Prefix selection and re-keying
pnpm/crates/lockfile/src/resolution/registry.rs, pnpm/crates/config/src/registry_options.rs, pnpm11/config/pick-registry-for-package/src/*, pnpm11/lockfile/utils/src/registryKeys.ts
Prefix selection considers the default registry and package routing. Re-keying can remove a prefix from default-registry package keys.
Resolver and freshness integration
pnpm/crates/resolving-npm-resolver/src/*, pnpm/crates/resolving-deps-resolver/src/*, pnpm/crates/lockfile/src/freshness.rs, pnpm11/resolving/npm-resolver/src/*, pnpm11/installing/deps-resolver/src/lockedRegistryKey.ts
Resolver paths pass package and registry context into key selection. Lockfile checks identify qualified default-registry keys that should be plain.
Workspace-state verification
pnpm/crates/workspace-state/src/lib.rs, pnpm/crates/package-manager/src/optimistic_repeat_install/*, pnpm/crates/package-manager/src/install/workspace_state*, pnpm11/workspace/state/src/*, pnpm11/deps/status/src/*, pnpm11/installing/commands/src/workspaceStateUpdate.ts
Workspace state records the default registry with registry prefixes. Install and status checks compare both settings when verifying registry keys.
Install tests, docs, and changesets
pnpm/crates/cli/tests/suite/*, pnpm/crates/cli/tests/suite/pnpr_install/*, pnpm11/pnpm/test/install/registryPrefixKeys.ts, pnpm11/installing/deps-installer/test/*, pnpm/docs/settings/dependency-resolution.md, pnpm11/docs/settings/dependency-resolution.md, .changeset/*
Tests cover plain keys, shared package entries, frozen installs, and re-keying. Documentation and changesets describe the updated behavior.

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Bug fix · Severity of issue fixed: Medium

Assessment against linked issues

Objective Addressed Explanation
Keep default-registry package keys plain when the built-in npmjs alias is restated or pointed to the default registry [#17575] ✅
Re-key previously qualified default-registry lockfile entries to plain keys during install [#17575] ✅

Possibly related issues

  • pnpm/pnpm#17575: The PR changes the default-registry key qualification described in this issue.

Possibly related PRs

  • pnpm/pnpm#17259: Introduced registry-qualified lockfile keys and re-keying; this PR changes that key contract for default-registry packages.
  • pnpm/pnpm#17258: Uses declared registry prefixes when rewriting published workspace dependencies; both changes affect how prefixes identify package keys.
  • pnpm/pnpm#17365: Matches named-registry optional dependencies against lockfile entries; both changes affect registry-aware lockfile matching.

Suggested labels: product: pacquet, product: pnpm@11

Merge Risk: Minimal · up to 87ebe

No outstanding issue identified in the supplied changes prevents merging after normal checks.

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: pnpm/pnpm
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 0bcbee6
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6b7b07ba-d055-4107-93c2-5c35d1473417
Commits

Reviewing files that changed from the base of the PR and between ecdf654 and 87ebe76.

Files selected for processing: 2
  • pnpm/docs/settings/dependency-resolution.md
  • pnpm11/docs/settings/dependency-resolution.md
Files skipped from review as they are similar to previous changes: 2
  • pnpm11/docs/settings/dependency-resolution.md
  • pnpm/docs/settings/dependency-resolution.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Same-run regression check

HEAD and main are measured on the same runner. The tolerance is 5% of the main median or 2 ms, whichever is larger. A regression requires both the median slowdown and the gap between the fastest retained HEAD sample and slowest retained main sample to exceed this tolerance, after trimming up to 10% from each tail. Suspected regressions are rerun once with target order reversed and only fail if reproduced. This conservative noise guard is not a statistical confidence interval.

Inconclusive rows do not fail the check. They remain visible for performance review. Bencher retains absolute minimum timings for historical tracking; historical alerts do not gate this PR. Sequential measurements can still be affected by runner drift.

Scenario Engine main median HEAD median Change Tolerance Result
isolated-fresh-restore-cold-cache-cold-store pacquet 2482.15 ms 2446.05 ms -1.5% 124.11 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store pnpr 1467.93 ms 1436.54 ms -2.1% 73.40 ms Within tolerance
isolated-fresh-restore-hot-cache-hot-store pacquet 259.12 ms 265.73 ms 2.6% 12.96 ms Within tolerance
isolated-fresh-restore-hot-cache-hot-store pnpr 289.22 ms 284.69 ms -1.6% 14.46 ms Within tolerance
isolated-repeat-install-hot-cache-hot-store pacquet 11.62 ms 10.96 ms -5.7% 2.00 ms Within tolerance
isolated-repeat-install-hot-cache-hot-store pnpr 12.25 ms 11.36 ms -7.2% 2.00 ms Within tolerance
isolated-repeat-install-cold-cache-hot-store pacquet 11.32 ms 11.40 ms 0.7% 2.00 ms Within tolerance
isolated-repeat-install-cold-cache-hot-store pnpr 10.80 ms 10.74 ms -0.5% 2.00 ms Within tolerance
isolated-fresh-install-cold-cache-cold-store pacquet 2502.96 ms 2594.12 ms 3.6% 125.15 ms Within tolerance
isolated-fresh-install-cold-cache-cold-store pnpr 1617.65 ms 1496.41 ms -7.5% 80.88 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pacquet 575.77 ms 577.37 ms 0.3% 28.79 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pnpr 326.54 ms 331.93 ms 1.6% 16.33 ms Within tolerance
isolated-fresh-install-cold-cache-hot-store pacquet 1840.21 ms 1826.98 ms -0.7% 92.01 ms Within tolerance
isolated-fresh-install-cold-cache-hot-store pnpr 371.61 ms 384.25 ms 3.4% 18.58 ms Within tolerance
isolated-fresh-resolve-hot-cache-offline pacquet 302.95 ms 381.58 ms 26.0% 15.15 ms Inconclusive (overlapping samples)
isolated-fresh-resolve-hot-cache-offline pnpr 96.48 ms 101.70 ms 5.4% 4.82 ms Inconclusive (overlapping samples)
isolated-peer-heavy-resolve-hot-cache-offline pacquet 250.99 ms 239.20 ms -4.7% 12.55 ms Within tolerance
isolated-linked-workspace-resolve-hot-cache-offline pacquet 98.20 ms 94.57 ms -3.7% 4.91 ms Within tolerance
isolated-injected-workspace-repeat-install-hot-cache-hot-store pacquet 103.79 ms 112.94 ms 8.8% 5.19 ms Inconclusive (overlapping samples)
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pacquet 4508.61 ms 4615.32 ms 2.4% 225.43 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pnpr 3607.64 ms 3647.34 ms 1.1% 180.38 ms Within tolerance
gvs-fresh-restore-hot-cache-hot-store pacquet 127.08 ms 130.59 ms 2.8% 6.35 ms Within tolerance
gvs-fresh-restore-hot-cache-hot-store pnpr 142.59 ms 141.83 ms -0.5% 7.13 ms Within tolerance
store-only-unlocked-direct-deps-cold-cache-hot-store pacquet 1310.94 ms 1301.91 ms -0.7% 65.55 ms Within tolerance
cargo-repeat-install-hot-cache-hot-store pacquet 25.66 ms 26.00 ms 1.3% 2.00 ms Within tolerance

Same-run syscall check

Each install runs 2 more times per revision, untimed, under strace --follow-forks --summary-only. A file syscall regresses when HEAD's fewest calls exceed main's most by more than 2% of main or 50 calls, whichever is larger. mkdir and mkdirat count only the calls that created a directory, since concurrent installs fail a varying number with EEXIST. A syscall whose identical runs differ by more than that tolerance is reported unstable and not gated, unless HEAD's fewest calls also exceed main's most by more than the tolerance plus that difference. Each scenario lists its largest change relative to its tolerance and every row that is not within tolerance.

Scenario Engine Syscall main calls (max) HEAD calls (min) Change Tolerance Identical-run spread Result
isolated-fresh-restore-cold-cache-cold-store pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-restore-cold-cache-cold-store pnpr access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-restore-hot-cache-hot-store pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-restore-hot-cache-hot-store pnpr readlink 15289 15290 +0.0% 305 27 Within tolerance
isolated-repeat-install-hot-cache-hot-store pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-repeat-install-hot-cache-hot-store pnpr access 8 8 +0.0% 50 0 Within tolerance
isolated-repeat-install-cold-cache-hot-store pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-repeat-install-cold-cache-hot-store pnpr access 8 8 +0.0% 50 0 Within tolerance
isolated-fresh-install-cold-cache-cold-store pacquet openat 64002 64013 +0.0% 1280 9 Within tolerance
isolated-fresh-install-cold-cache-cold-store pnpr access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-install-hot-cache-hot-store pacquet readlink 15319 15356 +0.2% 306 28 Within tolerance
isolated-fresh-install-hot-cache-hot-store pnpr access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-install-cold-cache-hot-store pacquet openat 17738 17743 +0.0% 354 9 Within tolerance
isolated-fresh-install-cold-cache-hot-store pnpr access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-resolve-hot-cache-offline pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-fresh-resolve-hot-cache-offline pnpr access 8 8 +0.0% 50 0 Within tolerance
isolated-peer-heavy-resolve-hot-cache-offline pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-linked-workspace-resolve-hot-cache-offline pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-injected-workspace-repeat-install-hot-cache-hot-store pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pnpr readlink 15293 15294 +0.0% 305 28 Within tolerance
gvs-fresh-restore-hot-cache-hot-store pacquet access 11 11 +0.0% 50 0 Within tolerance
gvs-fresh-restore-hot-cache-hot-store pnpr access 11 11 +0.0% 50 0 Within tolerance
store-only-unlocked-direct-deps-cold-cache-hot-store pacquet openat 5315 5319 +0.1% 106 6 Within tolerance
cargo-repeat-install-hot-cache-hot-store pacquet access 22 22 +0.0% 50 0 Within tolerance

Integrated-Benchmark Report (Linux)

Commit: 87ebe761bd2e

Compared against main at: f81f8b59e3ac

Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm; the linked, injected, and Cargo workspace scenarios compare current Rust against main Rust. Bencher consumes pacquet@HEAD and pnpr@HEAD.

The tables below show mean ± σ. Bencher tracks absolute minimum latency; PR regression checks compare HEAD and main samples from the same runner. Historical timing alerts do not gate PRs.

Scenario: Isolated linker: fresh restore, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.463 ± 0.058 2.387 2.570 1.68 ± 0.12
pacquet@main 2.533 ± 0.118 2.418 2.716 1.73 ± 0.14
pnpr@HEAD 1.474 ± 0.149 1.297 1.740 1.01 ± 0.12
pnpr@main 1.463 ± 0.095 1.300 1.607 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.4631482386199997,
      "stddev": 0.05762281091794236,
      "median": 2.4460515978200004,
      "user": 2.73884184,
      "system": 2.0408853000000002,
      "min": 2.38709607332,
      "max": 2.56977384932
    },
    {
      "command": "pacquet@main",
      "mean": 2.53275024142,
      "stddev": 0.11847911388848233,
      "median": 2.4821544713200003,
      "user": 2.7843918400000005,
      "system": 1.9902849999999996,
      "min": 2.41783531332,
      "max": 2.71579196032
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.47369642012,
      "stddev": 0.14916744726875572,
      "median": 1.43654334032,
      "user": 2.1416248399999995,
      "system": 1.6861779,
      "min": 1.29668449032,
      "max": 1.7404435333200001
    },
    {
      "command": "pnpr@main",
      "mean": 1.4627478860199998,
      "stddev": 0.09543543792681618,
      "median": 1.46793492782,
      "user": 1.7902895399999998,
      "system": 1.4787611999999997,
      "min": 1.3000577393200001,
      "max": 1.60739018132
    }
  ]
}

Scenario: Isolated linker: fresh restore, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 264.5 ± 14.3 243.5 284.2 1.00 ± 0.10
pacquet@main 263.8 ± 21.4 239.5 314.3 1.00
pnpr@HEAD 286.5 ± 15.2 267.1 314.9 1.09 ± 0.11
pnpr@main 298.1 ± 33.2 271.5 383.0 1.13 ± 0.16
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.26446846184000006,
      "stddev": 0.014264156590624784,
      "median": 0.26573004774000003,
      "user": 0.32056981999999995,
      "system": 0.6499527599999999,
      "min": 0.24354627774000004,
      "max": 0.28417231274000004
    },
    {
      "command": "pacquet@main",
      "mean": 0.26379299734,
      "stddev": 0.02135968323798895,
      "median": 0.25911628524,
      "user": 0.32078422,
      "system": 0.6378933599999999,
      "min": 0.23951323574000002,
      "max": 0.31429422474
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.28648840444000007,
      "stddev": 0.015168812029613505,
      "median": 0.28469145674,
      "user": 0.32175662,
      "system": 0.64741586,
      "min": 0.26706131674000005,
      "max": 0.31493570974
    },
    {
      "command": "pnpr@main",
      "mean": 0.2981060410400001,
      "stddev": 0.033233471258666644,
      "median": 0.28921983524000006,
      "user": 0.35369651999999996,
      "system": 0.6464125599999998,
      "min": 0.27153396574000005,
      "max": 0.38303362774000005
    }
  ]
}

Scenario: Isolated linker: repeat install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 11.2 ± 1.3 9.3 18.3 1.00
pacquet@main 11.9 ± 1.6 9.3 19.4 1.06 ± 0.18
pnpr@HEAD 11.9 ± 2.2 9.1 22.4 1.07 ± 0.23
pnpr@main 13.1 ± 3.2 8.7 32.2 1.16 ± 0.31
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.011214358062845847,
      "stddev": 0.0012969798384965595,
      "median": 0.0109597193,
      "user": 0.006421707588932807,
      "system": 0.005879540474308298,
      "min": 0.0092838033,
      "max": 0.0183374313
    },
    {
      "command": "pacquet@main",
      "mean": 0.011906783932743368,
      "stddev": 0.001551677464957005,
      "median": 0.0116205408,
      "user": 0.007290065663716812,
      "system": 0.005707185486725664,
      "min": 0.0092681133,
      "max": 0.019386961299999998
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.011946435434259262,
      "stddev": 0.0022352384232723387,
      "median": 0.0113645893,
      "user": 0.0072777103703703695,
      "system": 0.005753384537037037,
      "min": 0.0090827263,
      "max": 0.022406992300000005
    },
    {
      "command": "pnpr@main",
      "mean": 0.013058306901562495,
      "stddev": 0.003186905612155509,
      "median": 0.0122468513,
      "user": 0.007942406406249998,
      "system": 0.006237588515624995,
      "min": 0.0087452213,
      "max": 0.0322023323
    }
  ]
}

Scenario: Isolated linker: repeat install, cold cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 11.5 ± 1.1 9.6 15.7 1.07 ± 0.14
pacquet@main 11.5 ± 1.1 9.3 14.6 1.06 ± 0.14
pnpr@HEAD 10.8 ± 1.0 9.0 13.3 1.00
pnpr@main 10.9 ± 1.0 9.3 14.2 1.01 ± 0.13
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.011548365123535916,
      "stddev": 0.0010828519041729795,
      "median": 0.011401456560000002,
      "user": 0.006761885524861879,
      "system": 0.005769817679558008,
      "min": 0.009616154560000001,
      "max": 0.01565637156
    },
    {
      "command": "pacquet@main",
      "mean": 0.01145086711339806,
      "stddev": 0.0011197277995289505,
      "median": 0.01132208156,
      "user": 0.006544273203883493,
      "system": 0.005979291262135922,
      "min": 0.00928384456,
      "max": 0.01455206856
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.010756982803589749,
      "stddev": 0.0009684856106740792,
      "median": 0.01074435106,
      "user": 0.006519559487179483,
      "system": 0.005207882051282054,
      "min": 0.009036674560000001,
      "max": 0.01331720756
    },
    {
      "command": "pnpr@main",
      "mean": 0.010892812559999998,
      "stddev": 0.0010218330356333235,
      "median": 0.01080026656,
      "user": 0.006415440538116588,
      "system": 0.005441247533632286,
      "min": 0.009252674560000002,
      "max": 0.014168239560000002
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.601 ± 0.059 2.512 2.687 1.70 ± 0.16
pacquet@main 2.528 ± 0.064 2.480 2.692 1.65 ± 0.16
pnpr@HEAD 1.529 ± 0.138 1.368 1.705 1.00
pnpr@main 1.622 ± 0.115 1.412 1.799 1.06 ± 0.12
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.60126734708,
      "stddev": 0.05917174252021605,
      "median": 2.5941196359800003,
      "user": 2.44571012,
      "system": 1.7182648,
      "min": 2.51163363348,
      "max": 2.68657467148
    },
    {
      "command": "pacquet@main",
      "mean": 2.5275893206799998,
      "stddev": 0.06371419866031577,
      "median": 2.50295852148,
      "user": 2.1832873200000003,
      "system": 1.545055,
      "min": 2.48034619248,
      "max": 2.69156253548
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.52936952938,
      "stddev": 0.1382759120234664,
      "median": 1.49641424598,
      "user": 1.7353937199999998,
      "system": 1.4218605,
      "min": 1.36830694548,
      "max": 1.7045702494800001
    },
    {
      "command": "pnpr@main",
      "mean": 1.6217351718800004,
      "stddev": 0.11458041630390599,
      "median": 1.6176476539800002,
      "user": 1.7146192199999999,
      "system": 1.4741879,
      "min": 1.4121390634800002,
      "max": 1.7985307204800003
    }
  ]
}

Scenario: Isolated linker: fresh install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 584.2 ± 39.6 540.2 670.0 1.78 ± 0.15
pacquet@main 575.6 ± 18.6 546.7 615.4 1.75 ± 0.11
pnpr@HEAD 341.5 ± 33.2 304.0 422.0 1.04 ± 0.11
pnpr@main 328.8 ± 16.9 305.5 357.6 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.58419683174,
      "stddev": 0.03959244123480617,
      "median": 0.57737406924,
      "user": 0.8808027199999999,
      "system": 1.27607996,
      "min": 0.54022445824,
      "max": 0.67004146524
    },
    {
      "command": "pacquet@main",
      "mean": 0.57562589354,
      "stddev": 0.018564102146500228,
      "median": 0.57576574774,
      "user": 0.8815213199999998,
      "system": 1.2133799599999997,
      "min": 0.54668271224,
      "max": 0.61538821224
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.34151934064,
      "stddev": 0.03322084107301151,
      "median": 0.3319305342400001,
      "user": 0.31730562000000007,
      "system": 0.6634984599999999,
      "min": 0.30403992024000004,
      "max": 0.42196289624000005
    },
    {
      "command": "pnpr@main",
      "mean": 0.32876800054000005,
      "stddev": 0.016927841381360324,
      "median": 0.3265432542400001,
      "user": 0.31629392,
      "system": 0.63115046,
      "min": 0.30545125724000005,
      "max": 0.35762809524000005
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + hot store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.825 ± 0.027 1.778 1.871 4.87 ± 0.27
pacquet@main 1.845 ± 0.032 1.795 1.891 4.92 ± 0.27
pnpr@HEAD 0.386 ± 0.012 0.371 0.403 1.03 ± 0.06
pnpr@main 0.375 ± 0.020 0.346 0.401 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.82480024764,
      "stddev": 0.02672170923375561,
      "median": 1.82697988764,
      "user": 1.25282338,
      "system": 1.1522894,
      "min": 1.77754834764,
      "max": 1.87111635964
    },
    {
      "command": "pacquet@main",
      "mean": 1.84467689754,
      "stddev": 0.03244513789057751,
      "median": 1.84021224914,
      "user": 1.3374748799999998,
      "system": 1.0829808,
      "min": 1.79472260564,
      "max": 1.8914121026400001
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.38627382174,
      "stddev": 0.011802358743625858,
      "median": 0.38425287064,
      "user": 0.35561107999999997,
      "system": 0.7858537999999999,
      "min": 0.37050761464000004,
      "max": 0.40314319464000004
    },
    {
      "command": "pnpr@main",
      "mean": 0.37458997393999993,
      "stddev": 0.01966046954506,
      "median": 0.37161271614,
      "user": 0.37518697999999995,
      "system": 0.7141263999999999,
      "min": 0.34610217764,
      "max": 0.40103260164000004
    }
  ]
}

Scenario: Isolated linker: fresh resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 369.7 ± 47.5 293.3 448.7 3.85 ± 0.51
pacquet@main 306.5 ± 27.2 269.7 369.8 3.19 ± 0.31
pnpr@HEAD 102.0 ± 5.1 92.5 115.1 1.06 ± 0.07
pnpr@main 96.1 ± 3.5 90.8 102.3 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.36970702942,
      "stddev": 0.04745415966094326,
      "median": 0.38157783422,
      "user": 0.4027662199999999,
      "system": 0.28494217999999993,
      "min": 0.29327652722,
      "max": 0.44874244322
    },
    {
      "command": "pacquet@main",
      "mean": 0.30653164222,
      "stddev": 0.027197528848659763,
      "median": 0.30294601622,
      "user": 0.3339738199999999,
      "system": 0.21668298,
      "min": 0.26973112422,
      "max": 0.36976680722
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.10199510062740741,
      "stddev": 0.005118197611018312,
      "median": 0.10170308822,
      "user": 0.04513316444444445,
      "system": 0.019818117037037036,
      "min": 0.09249965922,
      "max": 0.11514872122
    },
    {
      "command": "pnpr@main",
      "mean": 0.09608802776838711,
      "stddev": 0.0034511460757091373,
      "median": 0.09647514322,
      "user": 0.03959384903225806,
      "system": 0.01757191612903226,
      "min": 0.09076416822000001,
      "max": 0.10233919922000001
    }
  ]
}

Scenario: Isolated linker: peer-heavy resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 241.4 ± 14.4 216.9 264.4 1.00
pacquet@main 250.0 ± 15.0 220.9 270.9 1.04 ± 0.09
pnpm@HEAD 4571.3 ± 156.2 4324.0 4789.6 18.93 ± 1.30
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.24143866704000003,
      "stddev": 0.01437777942595992,
      "median": 0.23920422704,
      "user": 0.2717535911111111,
      "system": 0.06588672222222221,
      "min": 0.21686260604000002,
      "max": 0.26436789404000005
    },
    {
      "command": "pacquet@main",
      "mean": 0.24995473215111114,
      "stddev": 0.014950488448026173,
      "median": 0.25098602004000004,
      "user": 0.2870569244444444,
      "system": 0.06180538888888888,
      "min": 0.22089573004000002,
      "max": 0.27085742604
    },
    {
      "command": "pnpm@HEAD",
      "mean": 4.57129622304,
      "stddev": 0.15616668462827019,
      "median": 4.56422484504,
      "user": 7.211568368888887,
      "system": 0.42096116666666666,
      "min": 4.323981020040001,
      "max": 4.789607510040001
    }
  ]
}

Scenario: Isolated linker: linked-workspace resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 98.5 ± 9.7 88.8 133.8 1.00
pacquet@main 102.8 ± 13.4 91.4 151.2 1.04 ± 0.17
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.0984518405925,
      "stddev": 0.009714245071197416,
      "median": 0.09457462228000002,
      "user": 0.08630705375000003,
      "system": 0.0675375025,
      "min": 0.08880127928,
      "max": 0.13378919328
    },
    {
      "command": "pacquet@main",
      "mean": 0.10284403544666666,
      "stddev": 0.013397144792469977,
      "median": 0.09819970028000002,
      "user": 0.10464356,
      "system": 0.05817350666666665,
      "min": 0.09141096728,
      "max": 0.15118813728
    }
  ]
}

Scenario: Isolated linker: injected workspace repeat install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 111.9 ± 9.3 95.2 129.4 1.06 ± 0.12
pacquet@main 105.1 ± 7.8 94.7 123.3 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.11187976933846153,
      "stddev": 0.009265922514646798,
      "median": 0.11293821230000001,
      "user": 0.041791499999999995,
      "system": 0.07886228615384615,
      "min": 0.0951882913,
      "max": 0.12942630330000002
    },
    {
      "command": "pacquet@main",
      "mean": 0.10508320197857146,
      "stddev": 0.007764284091830943,
      "median": 0.10379489880000001,
      "user": 0.035578107142857134,
      "system": 0.07771051142857142,
      "min": 0.09469415230000001,
      "max": 0.12325697430000002
    }
  ]
}

Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.666 ± 0.130 4.519 4.904 1.28 ± 0.06
pacquet@main 4.582 ± 0.168 4.433 4.977 1.26 ± 0.06
pnpr@HEAD 3.657 ± 0.090 3.548 3.810 1.00 ± 0.04
pnpr@main 3.645 ± 0.120 3.546 3.866 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.66603457504,
      "stddev": 0.12981018790266682,
      "median": 4.615315268640001,
      "user": 2.65085096,
      "system": 1.8758203999999998,
      "min": 4.51908739964,
      "max": 4.9040000386400004
    },
    {
      "command": "pacquet@main",
      "mean": 4.58198626234,
      "stddev": 0.1682368024082413,
      "median": 4.508614766640001,
      "user": 2.45483196,
      "system": 1.7802747,
      "min": 4.43313828864,
      "max": 4.97724360664
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.6567816298399998,
      "stddev": 0.09044696687184013,
      "median": 3.64734169664,
      "user": 2.3885006600000005,
      "system": 1.6941204999999997,
      "min": 3.54763316864,
      "max": 3.81015511164
    },
    {
      "command": "pnpr@main",
      "mean": 3.64507355784,
      "stddev": 0.12018667058994434,
      "median": 3.60764443414,
      "user": 2.3655105599999997,
      "system": 1.705716,
      "min": 3.54571062164,
      "max": 3.86633717064
    }
  ]
}

Scenario: GVS linker: fresh restore, hot cache + hot store

Same install as the isolated fresh-restore hot/hot scenario, into the shared virtual store, the layout pnpm 12 installs into by default. Scenarios run on separate machines, so compare main and branch within each table.

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 129.7 ± 10.4 115.2 150.2 1.02 ± 0.10
pacquet@main 127.7 ± 7.0 117.4 142.4 1.00
pnpr@HEAD 141.3 ± 5.4 131.0 149.3 1.11 ± 0.07
pnpr@main 144.2 ± 8.4 134.4 160.8 1.13 ± 0.09
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.1296532686764706,
      "stddev": 0.010351824020031115,
      "median": 0.13058525550000002,
      "user": 0.1585662176470588,
      "system": 0.13804554941176472,
      "min": 0.11521700550000001,
      "max": 0.15020251850000002
    },
    {
      "command": "pacquet@main",
      "mean": 0.12771526392105265,
      "stddev": 0.0069824272980250875,
      "median": 0.12708430250000002,
      "user": 0.16912804736842102,
      "system": 0.13092101999999997,
      "min": 0.11736238650000001,
      "max": 0.1423558635
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.14126965333333333,
      "stddev": 0.0054217864676394745,
      "median": 0.14183325350000003,
      "user": 0.17410832222222222,
      "system": 0.13466596444444445,
      "min": 0.13103253650000002,
      "max": 0.14934155750000003
    },
    {
      "command": "pnpr@main",
      "mean": 0.1442086615625,
      "stddev": 0.008448726987924714,
      "median": 0.14259009850000004,
      "user": 0.18211609999999998,
      "system": 0.13303664499999998,
      "min": 0.13435304850000002,
      "max": 0.1608352255
    }
  ]
}

Scenario: Store only: unlocked direct deps, cold cache + hot store

Store-only install (enableModulesDir: false, per-file store index, trusted lockfile) against a lockfile missing the direct dependencies that have peers, with the metadata cache wiped per iteration: the install resolves those from the registry, reuses their subtrees from the lockfile and checks the store, linking nothing. Direct installs only.

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.324 ± 0.049 1.277 1.399 1.01 ± 0.05
pacquet@main 1.317 ± 0.043 1.261 1.397 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.32448427098,
      "stddev": 0.04881722922041831,
      "median": 1.3019080120800002,
      "user": 0.6986461999999998,
      "system": 0.27747564,
      "min": 1.2770988030800001,
      "max": 1.39878144708
    },
    {
      "command": "pacquet@main",
      "mean": 1.31727427248,
      "stddev": 0.043310695264708585,
      "median": 1.3109357025800001,
      "user": 0.6607882,
      "system": 0.22873923999999998,
      "min": 1.26135167808,
      "max": 1.39743811608
    }
  ]
}

Scenario: Cargo: repeat install, hot cache + hot store

Frozen repeat install of a Cargo workspace (cargo.enabled: true) whose crates are already materialized in <storeDir>/v11/crates/ and linked into .pnpm/crates/crates-io. Direct installs only.

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 26.1 ± 0.5 25.4 28.6 1.01 ± 0.04
pacquet@main 25.8 ± 0.8 25.1 30.8 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.026142353821818176,
      "stddev": 0.0005180078089322971,
      "median": 0.02599976584,
      "user": 0.018977252727272735,
      "system": 0.014254266545454544,
      "min": 0.02541431134,
      "max": 0.028584864340000002
    },
    {
      "command": "pacquet@main",
      "mean": 0.025832609961621632,
      "stddev": 0.0007526569036329427,
      "median": 0.02566480334,
      "user": 0.01942905657657658,
      "system": 0.013525123963963971,
      "min": 0.02508633234,
      "max": 0.03076807734
    }
  ]
}

@codecov-commenter

codecov-commenter commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.78%. Comparing base (70a2200) to head (87ebe76).
⚠️ Report is 18 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #17581      +/-   ##
==========================================
+ Coverage   92.75%   92.78%   +0.03%     
==========================================
  Files        2033     2048      +15     
  Lines      262192   264029    +1837     
==========================================
+ Hits       243192   244990    +1798     
- Misses      19000    19039      +39     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@garnet-runtime-review

garnet-runtime-review Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Nothing new recorded

0 of 1 recorded job changed
Garnet records 1 of 19 TS CI jobs
At 87ebe76, compared with the last 10 recorded runs on main (latest 01f000a)
Recorded at the kernel (best-effort capture)

TS CI / Test / ubuntu (24.0.0, 2) / Node 24 / chunk 2/3 · nothing new

Workload · 01f000a → 87ebe76

  bash
  ├─ rustup
  │  └─ dualstack.k.sni.global.fastly[.]net
  └─ MainThread › pn
     ├─ dash › node
     │  ├─ node › node
     │  │  ├─ dash
     │  │  │  ├─ dash › node
     │  │  │  │  └─ nodejs[.]org
     │  │  │  └─ node
     │  │  │     └─ registry.npmjs[.]org
     │  │  ├─ git
     │  │  │  ├─ git › git › git-remote-http
     │  │  │  │  └─ github[.]com
     │  │  │  └─ 192.168.127[.]1
     │  │  ├─ pnpr
     │  │  │  └─ registry.npmjs[.]org
     │  │  ├─ codeload.github[.]com
     │  │  ├─ github[.]com
     │  │  ├─ nodejs[.]org
     │  │  ├─ registry.npmjs[.]org
     │  │  └─ unofficial-builds.nodejs[.]org
     │  └─ pn › node
     │     ├─ git
     │     │  ├─ git
     │     │  │  └─ 192.168.127[.]1
     │     │  └─ 192.168.127[.]1
     │     ├─ node
     │     │  ├─ git › git › git-remote-http
     │     │  │  └─ github[.]com
     │     │  ├─ node
     │     │  │  └─ registry.npmjs[.]org
     │     │  ├─ codeload.github[.]com
     │     │  ├─ github[.]com
     │     │  ├─ nodejs[.]org
     │     │  ├─ registry.npmjs[.]org
     │     │  └─ unofficial-builds.nodejs[.]org
     │     ├─ pnpr
     │     │  └─ registry.npmjs[.]org
     │     ├─ codeload.github[.]com
     │     ├─ github[.]com
     │     ├─ nodejs[.]org
     │     ├─ registry.npmjs[.]org
     │     └─ unofficial-builds.nodejs[.]org
     └─ nodejs[.]org

  systemd
  ├─ bash › bash › bash › bash › bash › bash
  │  ├─ bash
  │  │  ├─ gh
  │  │  │  └─ api.github[.]com
  │  │  └─ node
  │  │     ├─ git
  │  │     │  ├─ git › git › git-remote-http
  │  │     │  │  └─ github[.]com
  │  │     │  └─ 192.168.127[.]1
  │  │     └─ pn
  │  │        ├─ dash › node › pn
  │  │        │  ├─ dash › pn › dash › pnpm › dash › node
  │  │        │  │  ├─ codeload.github[.]com
  │  │        │  │  └─ registry.npmjs[.]org
  │  │        │  └─ node
  │  │        │     ├─ node
  │  │        │     │  └─ registry.npmjs[.]org
  │  │        │     └─ pnpr
  │  │        │        └─ registry.npmjs[.]org
  │  │        └─ nodejs[.]org
  │  └─ node
  │     ├─ pnpm
  │     │  ├─ dash › node › dash › node
  │     │  │  └─ nodejs[.]org
  │     │  ├─ git
  │     │  │  ├─ git › git › git-remote-http
  │     │  │  │  └─ github[.]com
  │     │  │  └─ 192.168.127[.]1
  │     │  ├─ dualstack.k.sni.global.fastly[.]net
  │     │  ├─ nodejs[.]org
  │     │  ├─ registry.npmjs[.]org
  │     │  └─ unofficial-builds.nodejs[.]org
  │     ├─ blacksmith.blob.core.windows[.]net
  │     └─ registry.npmjs[.]org
  └─ git
     └─ 192.168.127[.]1

  node › node
  └─ registry.npmjs[.]org

Runner & GitHub's own traffic · blacksmith-8vcpu-ubuntu-2404 · Linux X64

  node
  └─ productionresultssa32.blob.core[.]windows (github infra)

  MainThread
  └─ productionresultssa12.blob.core[.]windows (github infra)

  systemd
  ├─ chronyd
  │  ├─ 144.86.176[.]16
  │  ├─ 169[.]254[.]169[.]123
  │  ├─ 173.71.69[.]149
  │  ├─ 185.125.190[.]56
  │  ├─ 185.125.190[.]57
  │  ├─ 185.125.190[.]58
  │  ├─ 198.178.138[.]198
  │  ├─ 23.157.160[.]168
  │  ├─ 23.186.168[.]123
  │  ├─ 23.186.168[.]125
  │  ├─ 23.186.168[.]129
  │  ├─ 38.45.64[.]130
  │  └─ 91.189.91[.]157
  ├─ nginx › nginx
  │  ├─ 140.82.112[.]21
  │  ├─ 140.82.113[.]22
  │  ├─ 140.82.114[.]21
  │  ├─ 140.82.114[.]22
  │  ├─ 192.168.127[.]1
  │  ├─ 8.8.8[.]8
  │  └─ results-receiver.actions[.]githubusercontent (github infra)
  ├─ snapd
  │  └─ api.snapcraft[.]io
  ├─ systemd-resolve
  │  ├─ 8.8.4[.]4
  │  └─ 8.8.8[.]8
  └─ sudo › sudo
     └─ 192.168.127[.]1

Job log · Full record in Garnet ↗


How to read this
bash › curl                 ← ancestry as captured, then the process that acted
└─ example[.]com            ← what it reached

Read down: what ran, then what it reached. + only in this commit · − only in the compared run · unmarked in both. Runner & GitHub's own traffic is activity outside your steps and never counts. · Docs ↗

Recorded by Garnet · Add it to your CI ↗

@TrevorBurnham
TrevorBurnham marked this pull request as ready for review November 2, 2026 22:23
Copilot AI balanced review requested due to automatic review settings November 2, 2026 22:23
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Nov 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The changeset omits an @pnpm/pnpr patch target, leaving the server-side lockfile-key fix unrecorded for pnpr’s separate release group.

1 open issue
1 file not reviewed
  • pnpm-lock.yaml: Generated file
What changed in this PR

This PR restores plain lockfile keys when projects redirect built-in registry aliases to a mirror, addressing #17575 in both CLI implementations.

Changes:

  • Excludes built-in alias names from declared prefixes without changing alias routing.
  • Adds regression coverage for mirror configuration and re-keying during resolving installs.
  • Updates documentation, runtime dependency metadata, and release notes.
File Description
pnpm11/​pnpm/​test/​install/​registryPrefixKeys.ts Tests mirror configuration, hooks, and re-keying.
pnpm11/​docs/​settings/​dependency-resolution.md Documents built-in alias key behavior.
pnpm11/​config/​pick-registry-for-package/​test/​declaredRegistryPrefix.test.ts Tests built-in alias exclusion and custom-prefix selection.
pnpm11/​config/​pick-registry-for-package/​src/​index.ts Excludes built-in aliases from declared-prefix selection.
pnpm11/​config/​pick-registry-for-package/​package.json Makes constants a runtime dependency.
pnpm/​docs/​settings/​dependency-resolution.md Documents matching behavior for the Rust CLI.
pnpm/​crates/​config/​src/​tests/​declared_registry_prefixes.rs Tests alias routing and declared-prefix filtering.
pnpm/​crates/​config/​src/​tests.rs Registers the new configuration tests.
pnpm/​crates/​config/​src/​registry_options.rs Filters built-in aliases from declared prefixes.
pnpm/​crates/​cli/​tests/​suite/​registry_prefix_keys.rs Tests plain keys and resolving-install recovery.
pnpm-lock.yaml Records the constants dependency move.
.changeset/​17575-builtin-alias-keeps-plain-keys.md Adds release notes for the lockfile fix.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 2, 2026 23:50

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the built-in registry alias lockfile-key changes.

No open issues 🎉

1 resolved since last review
1 file not reviewed
  • pnpm-lock.yaml: Generated file

Review effort: Balanced

TrevorBurnham and others added 4 commits November 3, 2026 08:46
…ointed

Since pnpm#17259, a prefix the project sets qualifies every lockfile
key of its registry. The built-in npmjs and gh aliases counted too. A
project that sets registry to an npm mirror and points npmjs at the same
mirror, so npmjs: specifiers don't bypass it, therefore had every
package re-keyed as `<name>@npmjs:<version>`.

The built-in alias names are now left out of the declared prefixes in
both stacks. Setting one re-points the alias and nothing else: like an
alias that is not set, it qualifies only the specifiers that spell it.
A project that wants a registry's keys qualified declares a prefix that
is not built in.

A lockfile a 12.16 install already re-keyed this way is re-keyed to
plain by the reuse gate on the next install that resolves. The key
alone cannot tell such an entry from one an npmjs: specifier minted, so
the stale-key check does not flag it, and an install with nothing to
resolve keeps it.

Closes pnpm#17575.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 3, 2026 07:49
@zkochan
zkochan force-pushed the fix/builtin-alias-prefix-keys branch from 93b9842 to b8da832 Compare November 3, 2026 07:49

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@qodo-code-review

qodo-code-review Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (2) 📎 Requirement gaps (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. Resolver docs preserve old keying 📘 Rule violation ⚙ Maintainability
Description
exact_registry_specifier_for_revision_refresh documents a key that an older configuration wrote
with a prefix. That historical implementation detail is in the current contract comment and can
mislead maintainers about the behavior this function guarantees.
Code

pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree/walk/locked_versions.rs[R133-136]

+/// `locked_registry` is the registry the locked key's package resolved from.
+/// A named specifier pins only when it names that registry, so another
+/// declared alias of it, a key an older configuration wrote with one, or a
+/// plain key the alias's registry keeps pins too.
Relevance

●●● Strong

Accepted resolver-documentation precedents favor concise current contracts over historical
implementation rationale.

PR-#14815
PR-#14509

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The added documentation explicitly says a key an older configuration wrote with one, which is
historical phrasing prohibited for current behavior comments.

Rule 772199: Comments must describe current behavior, not historical implementations
pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree/walk/locked_versions.rs[133-136]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The function documentation refers to keys written by an older configuration, which describes historical implementation rather than the current contract.

## Fix Focus Areas
- pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree/walk/locked_versions.rs[133-136]

## Recommended Fix
Rewrite the comment in terms of the current behavior: describe that revision refresh compares the named specifier with the registry represented by the locked key, including plain keys and aliases, without mentioning older configurations or prior writes.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


2. The release note mixes old behavior 📘 Rule violation ⚙ Maintainability
Description
The changeset says the next install rewrites keys that earlier versions qualified, combining the new
behavior with a historical description in the same sentence. Release readers therefore get the
previous behavior only as a trailing clause rather than as a separate past-tense sentence.
Code

.changeset/17575-builtin-alias-keeps-plain-keys.md[10]

+Packages from the default registry keep plain lockfile keys, even when a prefix such as `npmjs` points at the registry set as `registry`. A dependency written with such a prefix shares the plain entry of the same package. The next install rewrites keys that earlier versions qualified this way [#17575](https://github.com/pnpm/pnpm/issues/17575).
Relevance

●●● Strong

Recent changeset precedents accept splitting current behavior from prior behavior into separate
sentences.

PR-#17527
PR-#17544

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The added changeset line uses the trailing clause that earlier versions qualified this way to
describe the old behavior instead of giving it a separate past-tense sentence.

Rule 3058498: Describe previous buggy behavior in a separate past-tense sentence
.changeset/17575-builtin-alias-keeps-plain-keys.md[10-10]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset combines the corrected behavior and the previous behavior in one sentence, rather than describing the previous behavior in its own past-tense sentence.

## Fix Focus Areas
- .changeset/17575-builtin-alias-keeps-plain-keys.md[10-10]

## Recommended Fix
Split the release note into separate sentences, for example: `Previously, these packages used prefix-qualified lockfile keys. The next install rewrites those keys to plain keys.` Keep the remaining observable behavior about shared plain entries in the current-behavior sentence.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


3. The test comment names old behavior ✓ Resolved
Description
The new test comment says that pnpm 12.16 qualified the default registry's package keys. Because the
comment is attached to the current regression test, it mixes historical implementation context into
source documentation instead of stating the invariant the test verifies.
Code

pnpm/crates/cli/tests/suite/registry_prefix_keys.rs[R681-682]

+/// A lockfile that keyed the default registry's packages by a prefix, as
+/// 12.16 did, is re-keyed by an install with nothing else to resolve.
Relevance

●●● Strong

Accepted test-comment precedents favor documenting observable behavior and correcting misleading
explanatory comments.

PR-#17474
PR-#17221

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The added comment explicitly uses the historical phrase 12.16 did to describe the previous keying
behavior.

Rule 772199: Comments must describe current behavior, not historical implementations
pnpm/crates/cli/tests/suite/registry_prefix_keys.rs[681-682]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The test comment describes what pnpm 12.16 did, which is historical implementation detail rather than current behavior.

## Fix Focus Areas
- pnpm/crates/cli/tests/suite/registry_prefix_keys.rs[681-682]

## Recommended Fix
Replace the version-specific wording with a current-behavior description, such as stating that an existing prefix-qualified default-registry key is rewritten to a plain key during an otherwise unchanged install.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational

4. Registry users get a false release note ✓ Resolved
Description
The @pnpm/pnpr changeset claims that resolve requests now preserve plain lockfile keys, but this
PR changes registry-prefix handling only in the pnpm v12 and v11 implementations. No pnpr resolver,
client, or protocol code is changed, so pnpr users would receive a release note for behavior the
package does not implement.
Code

.changeset/17575-pnpr-builtin-alias-keeps-plain-keys.md[R1-5]

+---
+"@pnpm/pnpr": patch
+---
+
+A resolve request that points the built-in `npmjs:` or `gh:` alias at another URL, such as the npm mirror set as `registry`, no longer gets that prefix on every lockfile key of the packages resolved from that URL. Only dependencies written with the alias get qualified keys [#17575](https://github.com/pnpm/pnpm/issues/17575).
Relevance

● Weak

pnpr consumes the shared registry-prefix function, so the behavior is implemented indirectly despite
no pnpr-specific source change.

PR-#15574
PR-#16724

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The changed pnpr changeset announces a resolve-request behavior, while the implementation changes
shown in this PR are the v12 Config::declared_registry_prefixes filter and the v11
pickDeclaredRegistryPrefix filter; no pnpr source is modified to implement the announced behavior.

.changeset/17575-pnpr-builtin-alias-keeps-plain-keys.md[1-5]
pnpm/crates/config/src/registry_options.rs[347-360]
pnpm11/config/pick-registry-for-package/src/index.ts[104-110]
Skill: review-code

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The `@pnpm/pnpr` changeset describes a lockfile-key behavior change, but the PR only modifies the pnpm v11 and v12 registry-prefix implementations and adds no pnpr implementation changes.

## Fix Focus Areas
- .changeset/17575-pnpr-builtin-alias-keeps-plain-keys.md[1-5]
- pnpm/crates/config/src/registry_options.rs[347-360]
- pnpm11/config/pick-registry-for-package/src/index.ts[104-110]

## Recommended Fix
Remove the `@pnpm/pnpr` changeset, or change the implementation and tests so the pnpr package genuinely exposes the behavior described by that release note.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Context sources
✅ Compliance rules (platform): 60 rules
Review mode: Auto: ⏭️ Skipped: Documentation-only prose changes cannot introduce runtime defects.

Grey Divider

Tip of the day
💡 Did you know, you can tweak Display settings with a live preview to see your comment before it ships

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Previous reviews

Review updated until commit 87ebe76

Results up to commit b8da832 ⚖️ Balanced


🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Informational
1. Registry users get a false release note ✓ Resolved
Description
The @pnpm/pnpr changeset claims that resolve requests now preserve plain lockfile keys, but this
PR changes registry-prefix handling only in the pnpm v12 and v11 implementations. No pnpr resolver,
client, or protocol code is changed, so pnpr users would receive a release note for behavior the
package does not implement.
Code

.changeset/17575-pnpr-builtin-alias-keeps-plain-keys.md[R1-5]

+---
+"@pnpm/pnpr": patch
+---
+
+A resolve request that points the built-in `npmjs:` or `gh:` alias at another URL, such as the npm mirror set as `registry`, no longer gets that prefix on every lockfile key of the packages resolved from that URL. Only dependencies written with the alias get qualified keys [#17575](https://github.com/pnpm/pnpm/issues/17575).
Relevance

● Weak

pnpr consumes the shared registry-prefix function, so the behavior is implemented indirectly despite
no pnpr-specific source change.

PR-#15574
PR-#16724

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The changed pnpr changeset announces a resolve-request behavior, while the implementation changes
shown in this PR are the v12 Config::declared_registry_prefixes filter and the v11
pickDeclaredRegistryPrefix filter; no pnpr source is modified to implement the announced behavior.

.changeset/17575-pnpr-builtin-alias-keeps-plain-keys.md[1-5]
pnpm/crates/config/src/registry_options.rs[347-360]
pnpm11/config/pick-registry-for-package/src/index.ts[104-110]
Skill: review-code

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The `@pnpm/pnpr` changeset describes a lockfile-key behavior change, but the PR only modifies the pnpm v11 and v12 registry-prefix implementations and adds no pnpr implementation changes.

## Fix Focus Areas
- .changeset/17575-pnpr-builtin-alias-keeps-plain-keys.md[1-5]
- pnpm/crates/config/src/registry_options.rs[347-360]
- pnpm11/config/pick-registry-for-package/src/index.ts[104-110]

## Recommended Fix
Remove the `@pnpm/pnpr` changeset, or change the implementation and tests so the pnpr package genuinely exposes the behavior described by that release note.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Results up to commit 4b4dc83 🧠 Deep


🐞 Bugs (0) 📘 Rule violations (2) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Remediation recommended
1. Resolver docs preserve old keying 📘 Rule violation ⚙ Maintainability
Description
exact_registry_specifier_for_revision_refresh documents a key that an older configuration wrote
with a prefix. That historical implementation detail is in the current contract comment and can
mislead maintainers about the behavior this function guarantees.
Code

pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree/walk/locked_versions.rs[R133-136]

+/// `locked_registry` is the registry the locked key's package resolved from.
+/// A named specifier pins only when it names that registry, so another
+/// declared alias of it, a key an older configuration wrote with one, or a
+/// plain key the alias's registry keeps pins too.
Relevance

●●● Strong

Accepted resolver-documentation precedents favor concise current contracts over historical
implementation rationale.

PR-#14815
PR-#14509

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The added documentation explicitly says a key an older configuration wrote with one, which is
historical phrasing prohibited for current behavior comments.

Rule 772199: Comments must describe current behavior, not historical implementations
pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree/walk/locked_versions.rs[133-136]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The function documentation refers to keys written by an older configuration, which describes historical implementation rather than the current contract.

## Fix Focus Areas
- pnpm/crates/resolving-deps-resolver/src/resolve_dependency_tree/walk/locked_versions.rs[133-136]

## Recommended Fix
Rewrite the comment in terms of the current behavior: describe that revision refresh compares the named specifier with the registry represented by the locked key, including plain keys and aliases, without mentioning older configurations or prior writes.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


2. The release note mixes old behavior 📘 Rule violation ⚙ Maintainability
Description
The changeset says the next install rewrites keys that earlier versions qualified, combining the new
behavior with a historical description in the same sentence. Release readers therefore get the
previous behavior only as a trailing clause rather than as a separate past-tense sentence.
Code

.changeset/17575-builtin-alias-keeps-plain-keys.md[10]

+Packages from the default registry keep plain lockfile keys, even when a prefix such as `npmjs` points at the registry set as `registry`. A dependency written with such a prefix shares the plain entry of the same package. The next install rewrites keys that earlier versions qualified this way [#17575](https://github.com/pnpm/pnpm/issues/17575).
Relevance

●●● Strong

Recent changeset precedents accept splitting current behavior from prior behavior into separate
sentences.

PR-#17527
PR-#17544

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The added changeset line uses the trailing clause that earlier versions qualified this way to
describe the old behavior instead of giving it a separate past-tense sentence.

Rule 3058498: Describe previous buggy behavior in a separate past-tense sentence
.changeset/17575-builtin-alias-keeps-plain-keys.md[10-10]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset combines the corrected behavior and the previous behavior in one sentence, rather than describing the previous behavior in its own past-tense sentence.

## Fix Focus Areas
- .changeset/17575-builtin-alias-keeps-plain-keys.md[10-10]

## Recommended Fix
Split the release note into separate sentences, for example: `Previously, these packages used prefix-qualified lockfile keys. The next install rewrites those keys to plain keys.` Keep the remaining observable behavior about shared plain entries in the current-behavior sentence.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


3. The test comment names old behavior ✓ Resolved
Description
The new test comment says that pnpm 12.16 qualified the default registry's package keys. Because the
comment is attached to the current regression test, it mixes historical implementation context into
source documentation instead of stating the invariant the test verifies.
Code

pnpm/crates/cli/tests/suite/registry_prefix_keys.rs[R681-682]

+/// A lockfile that keyed the default registry's packages by a prefix, as
+/// 12.16 did, is re-keyed by an install with nothing else to resolve.
Relevance

●●● Strong

Accepted test-comment precedents favor documenting observable behavior and correcting misleading
explanatory comments.

PR-#17474
PR-#17221

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The added comment explicitly uses the historical phrase 12.16 did to describe the previous keying
behavior.

Rule 772199: Comments must describe current behavior, not historical implementations
pnpm/crates/cli/tests/suite/registry_prefix_keys.rs[681-682]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The test comment describes what pnpm 12.16 did, which is historical implementation detail rather than current behavior.

## Fix Focus Areas
- pnpm/crates/cli/tests/suite/registry_prefix_keys.rs[681-682]

## Recommended Fix
Replace the version-specific wording with a current-behavior description, such as stating that an existing prefix-qualified default-registry key is rewritten to a plain key during an otherwise unchanged install.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@zkochan

zkochan commented Nov 3, 2026

Copy link
Copy Markdown
Member

@coderabbitai review

@zkochan

zkochan commented Nov 3, 2026

Copy link
Copy Markdown
Member

@coderabbitai approve

@coderabbitai coderabbitai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Fix comments: Fix CodeRabbit comments on this PR

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor
Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor
Action performed

Reviews resumed. No new commits to review.

@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor
Action performed

Comments resolved and changes approved.

Copilot AI balanced review requested due to automatic review settings November 3, 2026 10:53

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 87ebe76

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

Auto-approved notes - no code suggestions found
- 'approve_pr_on_self_review' flag enabled

@zkochan

zkochan commented Nov 3, 2026

Copy link
Copy Markdown
Member

Status on 87ebe76. This replaces my earlier comment, which described the built-in-alias approach this PR no longer takes.

  • Reworked to option 2 from the issue: packages from the default registry keep plain keys in both CLIs. The PR description has the full rule.
  • Review findings fixed:
    • Two prefixes of the default registry no longer key a scoped package that routes elsewhere twice.
    • The workspace state records defaultRegistry next to registryPrefixes, so the repeat-install fast path cannot keep keys an older pnpm qualified.
    • Two docs wording fixes.
  • Declined, with reasons on their threads:
    • The "one copy in node_modules/.pnpm" wording predates this PR.
    • The alias-provenance concern after registry changes: the entry is integrity-pinned, and the reuse check re-resolves it.
  • Checks: all green (71 pass, 1 skipped).
  • Reviewers on this head:
    • CodeRabbit and Qodo approved.
    • Copilot ran out of quota and Greptile's trial has ended, so neither reviewed.
    • No unresolved threads.

No remaining work within scope. The PR stays ready for review.


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

@zkochan
zkochan merged commit fe21693 into pnpm:main Nov 3, 2026
77 checks passed
lenovouser added a commit to panascais-forks/pnpm that referenced this pull request Nov 3, 2026
pnpm#17581 made the declared-prefix lookup take the default
registry, whose packages keep plain keys. Pass it from pack in both
stacks.
lenovouser added a commit to panascais-forks/pnpm that referenced this pull request Nov 3, 2026
Since pnpm#17581 a prefix that names the default registry
qualifies nothing, so the publish-and-install test pointed both at the
hosted registry and published a plain dependency. The siblings now
publish through publishConfig.registry, and the default registry is
unreachable, so a plain resolution fails.
lenovouser added a commit to panascais-forks/pnpm that referenced this pull request Nov 4, 2026
pnpm#17581 made the declared-prefix lookup take the default
registry, whose packages keep plain keys. Pass it from pack in both
stacks.
lenovouser added a commit to panascais-forks/pnpm that referenced this pull request Nov 4, 2026
Since pnpm#17581 a prefix that names the default registry
qualifies nothing, so the publish-and-install test pointed both at the
hosted registry and published a plain dependency. The siblings now
publish through publishConfig.registry, and the default registry is
unreachable, so a plain resolution fails.
lenovouser added a commit to panascais-forks/pnpm that referenced this pull request Nov 5, 2026
pnpm#17581 made the declared-prefix lookup take the default
registry, whose packages keep plain keys. Pass it from pack in both
stacks.
lenovouser added a commit to panascais-forks/pnpm that referenced this pull request Nov 5, 2026
Since pnpm#17581 a prefix that names the default registry
qualifies nothing, so the publish-and-install test pointed both at the
hosted registry and published a plain dependency. The siblings now
publish through publishConfig.registry, and the default registry is
unreachable, so a plain resolution fails.
lenovouser added a commit to panascais-forks/pnpm that referenced this pull request Nov 7, 2026
pnpm#17581 made the declared-prefix lookup take the default
registry, whose packages keep plain keys. Pass it from pack in both
stacks.
lenovouser added a commit to panascais-forks/pnpm that referenced this pull request Nov 7, 2026
Since pnpm#17581 a prefix that names the default registry
qualifies nothing, so the publish-and-install test pointed both at the
hosted registry and published a plain dependency. The siblings now
publish through publishConfig.registry, and the default registry is
unreachable, so a plain resolution fails.
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.

Re-pointing the built-in npmjs: alias re-keys every lockfile entry since 12.16.0

4 participants