Repository navigation
Conversation
An `overrides` value of `$foo` means "whatever specifier the root
manifest declares for `foo`". pacquet copied the raw map onto
`Config::overrides` instead, so the reference reached the read-package
hook, `pnpm-lock.yaml#overrides`, and the lockfile freshness check
verbatim. A lockfile written by pnpm 11 — which records the resolved
specifier — then failed a frozen install with ERR_PNPM_OUTDATED_LOCKFILE
(`overrides` in the lockfile `{"is-odd":"3.0.1"}` vs the config's
`{"is-odd":"$is-odd"}`), which is what blocked validating vitejs/vite.
Resolve the references while config is read: `pnpm-workspace.yaml` is
the only source that can set `overrides` (the global config.yaml is
stripped of the key and no `PNPM_CONFIG_*` var carries a map), and the
cascade knows the workspace root at that point, so the root manifest's
`dependencies` / `devDependencies` / `optionalDependencies` are in
reach. Every consumer downstream of `Config` — including the
`.modules.yaml` settings record — therefore sees the concrete
specifier, as it does in pnpm 11.
A reference to a package that is not a direct dependency fails with
ERR_PNPM_CANNOT_RESOLVE_OVERRIDE_VERSION, and the install family warns
about the deprecated syntax and points at catalogs, both matching
pnpm 11's wording.
TypeScript CLI: no change needed, it already resolves the references.
Closes #13314
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThis change resolves ChangesOverride version references
Estimated code review effort: 3 (Moderate) | ~20 minutes Assessment against linked issues
Assessment against linked issues: Out-of-scope changes
Possibly related PRs
Suggested labels: Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 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 QodoResolve
AI Description
Diagram
High-Level Assessment
Files changed (12)
|
Confidence Score: 5/5The PR appears safe to merge. The previously reported loss of root-manifest diagnostics is fixed by distinguishing a missing manifest from read or parse failures and propagating the latter through ReadRootManifest; no blocking failure remains. Reviews (2): Last reviewed commit: "fix(config): report an unreadable root m..." | Re-trigger Greptile |
Micro-Benchmark ResultsLinux |
Code Review by Qodo
Context used✅ Compliance rules (platform):
24 rules 1. Unsanitized manifest error text
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
…ides `$dep-name` resolution treated every failure to read the root package.json as "no dependencies declared", so a malformed manifest surfaced as a missing-dependency error pointing at the override rather than at the file to fix. Only a missing manifest means "no dependencies"; a read or parse failure now propagates, matching pnpm 11 (`safeReadProjectManifestOnly` swallows only ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND).
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13404 +/- ##
=======================================
Coverage 87.53% 87.54%
=======================================
Files 542 544 +2
Lines 93294 93349 +55
=======================================
+ Hits 81665 81722 +57
+ Misses 11629 11627 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 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/crates/config/src/override_version_references.rs`:
- Around line 18-22: Allow peer dependencies as override-reference sources by
adding DependencyGroup::Peer to REFERENCEABLE_GROUPS and updating its
documentation. In pnpm/crates/config/src/override_version_references/tests.rs
lines 70-91, change the peer-dependency case to assert successful resolution and
retain a separate failure case for a non-direct dependency.
- Around line 27-41: Update resolve_version_references to distinguish a missing
root package.json from failures returned by PackageManifest::from_path: preserve
the empty-dependencies behavior only when the manifest is absent, and propagate
other read, parse, or folder errors through the manifest-specific
LoadWorkspaceYamlError variant. Add coverage for a malformed root manifest and
verify it reports the manifest-specific error instead of
ERR_PNPM_CANNOT_RESOLVE_OVERRIDE_VERSION.
🪄 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: dea1818f-e37c-4d13-b626-26b789860d19
⛔ Files ignored due to path filters (1)
Cargo.lockis excluded by!**/*.lock,!Cargo.lock
📒 Files selected for processing (11)
.changeset/resolve-override-version-references.mdpnpm/crates/cli/src/cli_args.rspnpm/crates/cli/src/cli_args/install.rspnpm/crates/cli/src/cli_args/override_version_references.rspnpm/crates/cli/src/cli_args/pipelines.rspnpm/crates/cli/tests/override_version_references.rspnpm/crates/config/Cargo.tomlpnpm/crates/config/src/lib.rspnpm/crates/config/src/override_version_references.rspnpm/crates/config/src/override_version_references/tests.rspnpm/crates/config/src/workspace_yaml.rs
|
Code review by qodo was updated up to the latest commit acba4e1 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Integrated-Benchmark Report (Linux)Commit: Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD. The tables below show mean ± σ; Bencher thresholds on the minimum latency, which is far less perturbed by shared-runner contention (noise only adds time). Scenario: Isolated linker: fresh restore, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.5347009369199998,
"stddev": 0.18301549598437167,
"median": 2.43746074862,
"user": 1.47395934,
"system": 1.27998494,
"min": 2.3483971326199997,
"max": 2.7646288746199996,
"times": [
2.3819963886199997,
2.3483971326199997,
2.7646288746199996,
2.73803173062,
2.39509267462,
2.76200925762,
2.38852147262,
2.70779452962,
2.47982882262,
2.38070848562
]
},
{
"command": "pacquet@main",
"mean": 2.5668774874199998,
"stddev": 0.1496381458435189,
"median": 2.62003868412,
"user": 1.4498801399999999,
"system": 1.24858674,
"min": 2.33442037762,
"max": 2.76463446662,
"times": [
2.76463446662,
2.64760773662,
2.64705810262,
2.33442037762,
2.6392538926199998,
2.3662392896199997,
2.60082347562,
2.73584901062,
2.47202705662,
2.46086146562
]
},
{
"command": "pnpr@HEAD",
"mean": 1.45238200852,
"stddev": 0.09359881159939618,
"median": 1.4508927311200002,
"user": 1.00025944,
"system": 1.11112734,
"min": 1.33567325362,
"max": 1.64462405162,
"times": [
1.5367174376200001,
1.43764786662,
1.64462405162,
1.39056143762,
1.38865060262,
1.49172976662,
1.46413759562,
1.48363849362,
1.35043957962,
1.33567325362
]
},
{
"command": "pnpr@main",
"mean": 1.54215773012,
"stddev": 0.12331381455723839,
"median": 1.54793944412,
"user": 1.0049600399999998,
"system": 1.13003154,
"min": 1.3596980766200002,
"max": 1.73797980362,
"times": [
1.3596980766200002,
1.50805163562,
1.36209811962,
1.59822974262,
1.73797980362,
1.53159609562,
1.4655454546200002,
1.56428279262,
1.64424191462,
1.64985366562
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.25224311879999994,
"stddev": 0.008069737429723431,
"median": 0.24915611860000003,
"user": 0.19623105999999998,
"system": 0.5065620399999999,
"min": 0.24456717060000002,
"max": 0.2693341186,
"times": [
0.24456717060000002,
0.26236243859999997,
0.2528486416,
0.2555931616,
0.24745571060000002,
0.24944879860000002,
0.24886343860000001,
0.24644878760000002,
0.2455089216,
0.2693341186
]
},
{
"command": "pacquet@main",
"mean": 0.2548254249,
"stddev": 0.0056014523843993,
"median": 0.2540483366,
"user": 0.20040275999999996,
"system": 0.51555414,
"min": 0.2493909706,
"max": 0.2648646536,
"times": [
0.2509133726,
0.2540241416,
0.2541614796,
0.2565542476,
0.2648646536,
0.26413448159999997,
0.2540725316,
0.2504024526,
0.2493909706,
0.2497359176
]
},
{
"command": "pnpr@HEAD",
"mean": 0.2683074113,
"stddev": 0.009778959092439442,
"median": 0.2673275036,
"user": 0.21160646,
"system": 0.52516754,
"min": 0.2560952256,
"max": 0.2857115216,
"times": [
0.2857115216,
0.2790505076,
0.2580369566,
0.2627711376,
0.2598754136,
0.2560952256,
0.2645177706,
0.2762308556,
0.2701372366,
0.2706474876
]
},
{
"command": "pnpr@main",
"mean": 0.2694225426,
"stddev": 0.005837652819906868,
"median": 0.2695944871,
"user": 0.20358906000000002,
"system": 0.54085924,
"min": 0.2604612616,
"max": 0.2777611846,
"times": [
0.2777611846,
0.2775449986,
0.27178642659999996,
0.2604612616,
0.2623123706,
0.27116471859999997,
0.2663425256,
0.2725975806,
0.2680242556,
0.2662301036
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.7624677816000003,
"stddev": 0.019049437826674155,
"median": 2.7672053387,
"user": 1.67709924,
"system": 1.3010117399999996,
"min": 2.7403233537,
"max": 2.7902801697000004,
"times": [
2.7433328397000003,
2.7437482307,
2.7404948867,
2.7403233537,
2.7734236197,
2.7802844347,
2.7609870577,
2.7902801697000004,
2.7769159527,
2.7748872707000003
]
},
{
"command": "pacquet@main",
"mean": 2.7504209111,
"stddev": 0.012130003404120408,
"median": 2.7493382561999997,
"user": 1.6457132399999999,
"system": 1.30193244,
"min": 2.7290151467,
"max": 2.7736958737,
"times": [
2.7476914807,
2.7527863057000004,
2.7495961607,
2.7490803517,
2.7572626637,
2.7599712127,
2.7736958737,
2.7290151467,
2.7377064667,
2.7474034487
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5538440903000001,
"stddev": 0.11185838081218959,
"median": 1.5330589492000002,
"user": 1.01276744,
"system": 1.11651394,
"min": 1.4215662017000001,
"max": 1.7359136697,
"times": [
1.5486805227000002,
1.6606770587000002,
1.4215662017000001,
1.4421776907000001,
1.5174373757000001,
1.4307226157000001,
1.5084259627,
1.7359136697,
1.6905950447000002,
1.5822447607
]
},
{
"command": "pnpr@main",
"mean": 1.6239799045,
"stddev": 0.1353965087035559,
"median": 1.5867721377000001,
"user": 1.00011844,
"system": 1.1444630400000002,
"min": 1.4256734297000002,
"max": 1.8127351087,
"times": [
1.7911645677,
1.5574697377,
1.7661539407000002,
1.6160745377,
1.6927190647,
1.8127351087,
1.5574040437,
1.4760147357000002,
1.5443898787,
1.4256734297000002
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.58916781028,
"stddev": 0.008686984835405915,
"median": 0.58840951438,
"user": 0.7150603200000001,
"system": 0.64091634,
"min": 0.57857602688,
"max": 0.60766209188,
"times": [
0.59064761988,
0.58341098188,
0.59852974088,
0.58653009288,
0.59028893588,
0.60766209188,
0.58214610488,
0.59109994988,
0.58278655788,
0.57857602688
]
},
{
"command": "pacquet@main",
"mean": 0.5695725282799999,
"stddev": 0.014176225545657284,
"median": 0.56793646938,
"user": 0.6822189200000001,
"system": 0.6699027399999999,
"min": 0.55341508688,
"max": 0.60162654088,
"times": [
0.56525071788,
0.5716924918799999,
0.57444563488,
0.57062222088,
0.58059593188,
0.60162654088,
0.5622857958799999,
0.55437241488,
0.55341508688,
0.56141844688
]
},
{
"command": "pnpr@HEAD",
"mean": 0.30955972258000003,
"stddev": 0.006613715857179816,
"median": 0.30793262938,
"user": 0.19553061999999996,
"system": 0.5431231399999998,
"min": 0.30315088888,
"max": 0.32704739288,
"times": [
0.30648614588,
0.30943693088,
0.30604315288,
0.30315088888,
0.30848210688,
0.30608210688000004,
0.31218487488,
0.30930047388000004,
0.32704739288,
0.30738315188000004
]
},
{
"command": "pnpr@main",
"mean": 0.29939774197999997,
"stddev": 0.0048416005758273924,
"median": 0.30062101538,
"user": 0.20756401999999996,
"system": 0.5055120399999999,
"min": 0.28981186388,
"max": 0.30740636588000003,
"times": [
0.29765014288,
0.30154225688,
0.29698031488000004,
0.30099388588000003,
0.30116399588000003,
0.30740636588000003,
0.28981186388,
0.29491493388,
0.30326551488000003,
0.30024814488
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.9011037598400005,
"stddev": 0.01050638448574059,
"median": 1.9003509022400003,
"user": 0.9030205600000001,
"system": 0.7624598,
"min": 1.8882788927400003,
"max": 1.9155969457400002,
"times": [
1.9155969457400002,
1.8882788927400003,
1.90751409774,
1.9136489647400001,
1.9037033067400002,
1.89341311074,
1.91117082874,
1.8887221857400003,
1.8969984977400003,
1.8919907677400003
]
},
{
"command": "pacquet@main",
"mean": 1.89169676564,
"stddev": 0.010437597577077722,
"median": 1.89095191974,
"user": 0.9189827600000001,
"system": 0.7356185,
"min": 1.8794580577400002,
"max": 1.9171989257400002,
"times": [
1.9171989257400002,
1.8948385387400002,
1.8940130267400002,
1.8794580577400002,
1.8858488857400002,
1.88165526574,
1.8873512887400001,
1.8946998277400002,
1.8916828377400001,
1.89022100174
]
},
{
"command": "pnpr@HEAD",
"mean": 0.29528824154,
"stddev": 0.012706648143186833,
"median": 0.29845259224,
"user": 0.19753905999999996,
"system": 0.5024276999999999,
"min": 0.27926385374,
"max": 0.31568900074,
"times": [
0.27926385374,
0.27946017274,
0.29685006074000003,
0.31568900074,
0.30005512374,
0.30087389174,
0.30077248074,
0.31010991674,
0.28292370074,
0.28688421374
]
},
{
"command": "pnpr@main",
"mean": 0.30241055914000003,
"stddev": 0.0069696381198661355,
"median": 0.30071146624,
"user": 0.19427856000000002,
"system": 0.5301636999999999,
"min": 0.29179293774000004,
"max": 0.31159919474000003,
"times": [
0.29856565374,
0.30285727874,
0.29638160974,
0.29812796274000003,
0.31129275974000004,
0.29179293774000004,
0.31083860574,
0.29831956174,
0.30433002674,
0.31159919474000003
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.35186243886,
"stddev": 0.011404126926504317,
"median": 0.34879705906,
"user": 0.35322738,
"system": 0.04523362,
"min": 0.34066413256000005,
"max": 0.37602452856000007,
"times": [
0.37602452856000007,
0.34392697356,
0.34066413256000005,
0.34500078156,
0.34122529856000006,
0.35561346056000004,
0.35259333656,
0.35745215456000007,
0.34333177556000005,
0.36279194656
]
},
{
"command": "pacquet@main",
"mean": 0.35385204676000004,
"stddev": 0.011552784903387566,
"median": 0.34798971706000004,
"user": 0.34774368,
"system": 0.053925420000000016,
"min": 0.34519432556,
"max": 0.37402288756,
"times": [
0.34552917356000007,
0.34855386656000004,
0.34519432556,
0.37402288756,
0.34774888456,
0.34724914456000006,
0.34579179656000003,
0.34823054956000005,
0.36370548356000004,
0.37249435556000005
]
},
{
"command": "pnpr@HEAD",
"mean": 0.08657484871625001,
"stddev": 0.001765885598329818,
"median": 0.08704717856000001,
"user": 0.02052102375,
"system": 0.00832105,
"min": 0.08199139556000001,
"max": 0.08961492756,
"times": [
0.08731463555999999,
0.08481108156,
0.08305403055999999,
0.08694760656,
0.08317169256000001,
0.08685587456000002,
0.08199139556000001,
0.08493827056,
0.08616349256,
0.08886527956000001,
0.08650568556000002,
0.08794331656000001,
0.08760299756,
0.08666911256000001,
0.08961492756,
0.08638801556,
0.08836679256000002,
0.08540267356,
0.08767059456000001,
0.08672746256,
0.08734169656000002,
0.08765616756,
0.08726286756000001,
0.08729029056000001,
0.08784769656,
0.08638590156,
0.08288401156,
0.08708569556000001,
0.08800780756000001,
0.08751069456000002,
0.08700866156,
0.08710872956000001
]
},
{
"command": "pnpr@main",
"mean": 0.08531821274181818,
"stddev": 0.0021229750618317503,
"median": 0.08613705356000001,
"user": 0.021219513333333336,
"system": 0.007278332727272727,
"min": 0.08149919956000001,
"max": 0.08800471256,
"times": [
0.08613705356000001,
0.08149919956000001,
0.08453095656000001,
0.08695310655999999,
0.08711496056000001,
0.08714196156000001,
0.08746210356,
0.08720009056,
0.08307584256,
0.08643574456,
0.08233534955999999,
0.08510134756000001,
0.08701388056,
0.08787074056,
0.08556080056000001,
0.08191673456000001,
0.08288341956,
0.08690179056,
0.08791481256,
0.08786413756,
0.08562235656,
0.08296286956000001,
0.08426548655999999,
0.08631239356,
0.08712381656000001,
0.08615414456,
0.08402132856,
0.08682920356000001,
0.08800471256,
0.08267517956,
0.08162711956000002,
0.08228144956,
0.08470692656
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.570656720840001,
"stddev": 0.13496305665968034,
"median": 4.56789071774,
"user": 1.65328972,
"system": 1.3447572,
"min": 4.41174409774,
"max": 4.777082028740001,
"times": [
4.6417969267400006,
4.7297669227400005,
4.62725374274,
4.6691812957400005,
4.4226528827400005,
4.50852769274,
4.41174409774,
4.777082028740001,
4.42604700974,
4.4925146087400005
]
},
{
"command": "pacquet@main",
"mean": 4.56539304014,
"stddev": 0.1636292426042076,
"median": 4.48672647324,
"user": 1.6812345200000003,
"system": 1.3384813999999998,
"min": 4.42763811874,
"max": 4.80900561574,
"times": [
4.51896517274,
4.45241848574,
4.42763811874,
4.80394618774,
4.780274003740001,
4.52387024774,
4.45448777374,
4.44313926174,
4.80900561574,
4.44018553374
]
},
{
"command": "pnpr@HEAD",
"mean": 3.5459993879400002,
"stddev": 0.10906594873126099,
"median": 3.50173358924,
"user": 1.1481257200000001,
"system": 1.2304742,
"min": 3.43969321974,
"max": 3.79918656774,
"times": [
3.55021838174,
3.43969321974,
3.4884005187400002,
3.49633092874,
3.49358657274,
3.6098753837400004,
3.5071362497400003,
3.79918656774,
3.44456637474,
3.63099968174
]
},
{
"command": "pnpr@main",
"mean": 3.59315135804,
"stddev": 0.12177484073834038,
"median": 3.58330055624,
"user": 1.1266847199999999,
"system": 1.2380635000000002,
"min": 3.44384031974,
"max": 3.83571907374,
"times": [
3.48694939274,
3.4727373417400003,
3.44384031974,
3.52095692574,
3.63038261274,
3.6086742477400002,
3.66723508974,
3.83571907374,
3.55792686474,
3.7070917117400004
]
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13404 |
| Testbed | pnpr |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | milliseconds (ms) |
|---|---|---|
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 1,421.57 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 279.26 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 303.15 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 81.99 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,335.67 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,439.69 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 256.10 ms |
…3404) An `overrides` value of `$foo` means "whatever specifier the root manifest declares for `foo`". pacquet copied the raw map onto `Config::overrides` instead, so the reference reached the read-package hook, `pnpm-lock.yaml#overrides`, and the lockfile freshness check verbatim. A lockfile written by pnpm 11 — which records the resolved specifier — then failed a frozen install with ERR_PNPM_OUTDATED_LOCKFILE (`overrides` in the lockfile `{"is-odd":"3.0.1"}` vs the config's `{"is-odd":"$is-odd"}`), which is what blocked validating vitejs/vite. Resolve the references while config is read: `pnpm-workspace.yaml` is the only source that can set `overrides` (the global config.yaml is stripped of the key and no `PNPM_CONFIG_*` var carries a map), and the cascade knows the workspace root at that point, so the root manifest's `dependencies` / `devDependencies` / `optionalDependencies` are in reach. Every consumer downstream of `Config` — including the `.modules.yaml` settings record — therefore sees the concrete specifier, as it does in pnpm 11. A reference to a package that is not a direct dependency fails with ERR_PNPM_CANNOT_RESOLVE_OVERRIDE_VERSION, and the install family warns about the deprecated syntax and points at catalogs, both matching pnpm 11's wording. TypeScript CLI: no change needed, it already resolves the references. Closes pnpm#13314
Summary
overridesvalues may use the$dep-nameself-reference syntax —rolldown: $rolldownmeans "whatever specifier the root manifest declares forrolldown". pacquet copied the raw map ontoConfig::overrides, so the reference reached the read-package hook,pnpm-lock.yaml#overrides, and the lockfile freshness check verbatim. A lockfile written by pnpm 11 (which records the resolved specifier) then failed a frozen install:This PR resolves the references while config is read, so every consumer downstream of
Config(including the.modules.yamlsettings record) sees the concrete specifier, as in pnpm 11. A reference to a package that is not a direct dependency now fails withERR_PNPM_CANNOT_RESOLVE_OVERRIDE_VERSION, and the install family warns about the deprecated syntax and points at catalogs — both matching pnpm 11's wording (getOptionsFromPnpmSettings).The TypeScript CLI already resolves these references, so it needs no change; this is a pacquet-only fix.
Closes #13314
Squash Commit Body
Checklist
pnpm/port, or the description notes what still needs porting.pnpm changeset) if this PR changes any publishedpackage. Keep it short and written for pnpm users — it becomes a release note.
Written by an agent (Claude Code, claude-opus-5[1m]).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
Bug Fixes
$dep-nameoverride version references are now resolved using the root manifest’s direct dependencies.pnpm-lock.yaml, so--frozen-lockfileinstalls no longer fail for these cases.$...references now fail with a clearerERR_PNPM_CANNOT_RESOLVE_OVERRIDE_VERSIONmessage when the dependency isn’t a direct dependency.Warnings
$-style override version references now emit a deprecation warning pointing to thecatalog:protocol, including during fast-path installs.Documentation