Repository navigation
refactor(package-manager): break the module cycle between install and the repeat-install fast path - #17686
Conversation
… the repeat-install fast path The install and its repeat-install fast path depended on each other: the install recorded its state through the fast path's settings, validation and timestamps, and ran the fast-path check itself, while the fast path read the install's recorded state and lockfile freshness checks. - A new install_state module holds what both sides need: the recorded settings, the validation records, the timestamps, local file dependencies, and the inputs and outcome of the repeat-install check. - The standalone up-to-date check and the verify-deps gate move from install::workspace_state into optimistic_repeat_install::up_to_date. - install no longer names the fast path. InstallRunOptions carries the check as a RepeatInstallCheck function pointer, which the Install::run* entry points, now in install_entry, supply. - InstallSaveOptions takes lockfile_check, so the condition repeated in three places becomes writes_lockfile(). The fast path now sits above install. The crate's largest module cycle drops from 12 modules to the 6 fast_update_* modules, and the module_cycles baseline is lowered to match. No behavior changes. Part of pnpm/tasks#254. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Micro-Benchmark ResultsLinux |
Same-run regression checkHEAD 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.
Same-run syscall checkEach install runs 2 more times per revision, untimed, under
Integrated-Benchmark Report (Linux)Commit: Compared against main at: 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
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.38555937008,
"stddev": 0.11075878759679395,
"median": 2.36244256258,
"user": 2.1474220800000006,
"system": 1.50946226,
"min": 2.2689696960799997,
"max": 2.59852710808
},
{
"command": "pacquet@main",
"mean": 2.3438347106800004,
"stddev": 0.11119453218488867,
"median": 2.29641973608,
"user": 2.00203978,
"system": 1.49318976,
"min": 2.23295499808,
"max": 2.5408772900799996
},
{
"command": "pnpr@HEAD",
"mean": 1.44804250998,
"stddev": 0.1375172568991413,
"median": 1.41779644958,
"user": 1.8740707800000003,
"system": 1.4627724599999998,
"min": 1.2738592050800002,
"max": 1.66110195808
},
{
"command": "pnpr@main",
"mean": 1.40371153878,
"stddev": 0.07640135386379233,
"median": 1.39471918058,
"user": 1.9277161799999998,
"system": 1.38599216,
"min": 1.29500937808,
"max": 1.51483364208
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.28766080962,
"stddev": 0.017966156887404463,
"median": 0.29117836622000004,
"user": 0.33891543999999996,
"system": 0.657604,
"min": 0.25534443722,
"max": 0.31443569222
},
{
"command": "pacquet@main",
"mean": 0.27209479142,
"stddev": 0.006407822427891864,
"median": 0.27185443272,
"user": 0.34232114,
"system": 0.6175580999999999,
"min": 0.26193060422000003,
"max": 0.28182233222
},
{
"command": "pnpr@HEAD",
"mean": 0.30590303862,
"stddev": 0.01710980325302758,
"median": 0.30548567322,
"user": 0.35268854000000005,
"system": 0.6484368,
"min": 0.27970691422,
"max": 0.33628953122
},
{
"command": "pnpr@main",
"mean": 0.31288369702,
"stddev": 0.016274754071502022,
"median": 0.31802268221999996,
"user": 0.36838054,
"system": 0.6994515,
"min": 0.28530411122,
"max": 0.33591647622
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.010046246979653676,
"stddev": 0.000780255146047971,
"median": 0.0100089303,
"user": 0.005863209264069262,
"system": 0.005136920779220782,
"min": 0.0083248893,
"max": 0.012855164300000001
},
{
"command": "pacquet@main",
"mean": 0.01008872919795918,
"stddev": 0.0008408972149465344,
"median": 0.0099039733,
"user": 0.006003613469387754,
"system": 0.005032428163265302,
"min": 0.0085689673,
"max": 0.013566009300000001
},
{
"command": "pnpr@HEAD",
"mean": 0.010118222565917606,
"stddev": 0.0008639563018569295,
"median": 0.009903062300000001,
"user": 0.005681076329588017,
"system": 0.005332320224719102,
"min": 0.0086745343,
"max": 0.014373134300000001
},
{
"command": "pnpr@main",
"mean": 0.010040960007692312,
"stddev": 0.0007904486861244443,
"median": 0.0098979373,
"user": 0.00590867846153846,
"system": 0.005020606538461542,
"min": 0.0085540593,
"max": 0.014985223300000001
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.010974891914867257,
"stddev": 0.0007509514617745532,
"median": 0.010857265260000002,
"user": 0.0060838442477876165,
"system": 0.0057539375221238925,
"min": 0.009732179260000001,
"max": 0.01320898126
},
{
"command": "pacquet@main",
"mean": 0.01155600620339623,
"stddev": 0.0009256583432721097,
"median": 0.01147221076,
"user": 0.006742606603773587,
"system": 0.005810774528301886,
"min": 0.009424140260000002,
"max": 0.014003901260000002
},
{
"command": "pnpr@HEAD",
"mean": 0.011226863213703706,
"stddev": 0.0008730140096053322,
"median": 0.011172750260000001,
"user": 0.006467350925925926,
"system": 0.005700049814814812,
"min": 0.00948949026,
"max": 0.013865470260000002
},
{
"command": "pnpr@main",
"mean": 0.011590040599901477,
"stddev": 0.0011560985753809915,
"median": 0.01157381126,
"user": 0.007095566009852214,
"system": 0.0054918766502463036,
"min": 0.00978223026,
"max": 0.014966101260000001
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.5963698691199997,
"stddev": 0.04945369375504457,
"median": 2.59605754662,
"user": 2.5242109800000003,
"system": 1.7095209400000002,
"min": 2.5153476236200003,
"max": 2.67461617962
},
{
"command": "pacquet@main",
"mean": 2.73150839072,
"stddev": 0.12072659998673459,
"median": 2.71008828062,
"user": 2.8415693799999997,
"system": 2.00651594,
"min": 2.5612317736200003,
"max": 2.9174335566200003
},
{
"command": "pnpr@HEAD",
"mean": 1.57754550162,
"stddev": 0.10958606094158065,
"median": 1.53810000362,
"user": 1.89607678,
"system": 1.6701970400000001,
"min": 1.4480089526200002,
"max": 1.7570196396200002
},
{
"command": "pnpr@main",
"mean": 1.55873913832,
"stddev": 0.14038192629062718,
"median": 1.54111692262,
"user": 1.8499915799999997,
"system": 1.5578532399999996,
"min": 1.3851674386200001,
"max": 1.7823459136200002
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.47910664903999994,
"stddev": 0.015603411583041274,
"median": 0.48103822074,
"user": 0.7110176,
"system": 0.87731446,
"min": 0.45846222024000005,
"max": 0.51011981724
},
{
"command": "pacquet@main",
"mean": 0.4860084715400001,
"stddev": 0.020338730848517093,
"median": 0.48701179674000006,
"user": 0.7026994999999999,
"system": 0.8794989599999999,
"min": 0.45531126724000004,
"max": 0.52750132424
},
{
"command": "pnpr@HEAD",
"mean": 0.30086513134000004,
"stddev": 0.006577757904440715,
"median": 0.30031203874,
"user": 0.27433729999999995,
"system": 0.60421046,
"min": 0.29069339824,
"max": 0.31089802224
},
{
"command": "pnpr@main",
"mean": 0.30828125894,
"stddev": 0.009599066227173523,
"median": 0.30875513274,
"user": 0.2585104000000001,
"system": 0.6013320600000001,
"min": 0.29333387824,
"max": 0.32434082024000005
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.7946011120599998,
"stddev": 0.043446215691031735,
"median": 1.7841592992600002,
"user": 1.18054478,
"system": 1.0574576199999999,
"min": 1.74841855526,
"max": 1.87462054826
},
{
"command": "pacquet@main",
"mean": 1.76236309296,
"stddev": 0.0250451342209999,
"median": 1.7555822252600002,
"user": 1.14935628,
"system": 1.0115138199999998,
"min": 1.7246618952600001,
"max": 1.80117205926
},
{
"command": "pnpr@HEAD",
"mean": 0.3411463881600001,
"stddev": 0.02028380636601565,
"median": 0.33285751726,
"user": 0.32929087999999995,
"system": 0.6403590200000001,
"min": 0.32011122726,
"max": 0.38143919826000006
},
{
"command": "pnpr@main",
"mean": 0.37276044616,
"stddev": 0.018247730792589907,
"median": 0.38114099676,
"user": 0.3642308799999999,
"system": 0.74144982,
"min": 0.33578151026,
"max": 0.39225753626000004
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.28846033204,
"stddev": 0.015404655986574221,
"median": 0.28595289494,
"user": 0.2945756599999999,
"system": 0.17681217999999996,
"min": 0.26435600394000003,
"max": 0.31143606394
},
{
"command": "pacquet@main",
"mean": 0.28388623334,
"stddev": 0.01577988200347177,
"median": 0.28627039994000003,
"user": 0.29128265999999997,
"system": 0.20209558,
"min": 0.26152926594000003,
"max": 0.30796030694
},
{
"command": "pnpr@HEAD",
"mean": 0.10190128816222224,
"stddev": 0.00429145626094473,
"median": 0.10257493794000001,
"user": 0.04326595259259259,
"system": 0.020709568888888884,
"min": 0.09313675694000001,
"max": 0.11115996094000001
},
{
"command": "pnpr@main",
"mean": 0.09993911065428572,
"stddev": 0.004330829231355711,
"median": 0.09964846594000001,
"user": 0.04299621714285713,
"system": 0.019688834285714284,
"min": 0.09280747794000001,
"max": 0.10834202394
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.2305182312622222,
"stddev": 0.014771887583328203,
"median": 0.22878685604000001,
"user": 0.2441119688888888,
"system": 0.05201039555555556,
"min": 0.20958727704000002,
"max": 0.25375948304
},
{
"command": "pacquet@main",
"mean": 0.2183840091511111,
"stddev": 0.015519908274865515,
"median": 0.21219624604,
"user": 0.23448707999999996,
"system": 0.04662739555555555,
"min": 0.20254397004,
"max": 0.24988801404000002
},
{
"command": "pnpm@HEAD",
"mean": 3.9117462504844442,
"stddev": 0.19004831268215652,
"median": 3.85505924304,
"user": 5.727081191111111,
"system": 0.3474300622222222,
"min": 3.69017028404,
"max": 4.277416092039999
}
]
}Scenario: Isolated linker: linked-workspace resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.07487681740162161,
"stddev": 0.0026497272469411972,
"median": 0.07499724978000001,
"user": 0.06726494000000001,
"system": 0.04687163621621619,
"min": 0.07060225378000001,
"max": 0.08291000078
},
{
"command": "pacquet@main",
"mean": 0.07454461238,
"stddev": 0.0037029480465339995,
"median": 0.07393309578000001,
"user": 0.06838454000000002,
"system": 0.04527250571428571,
"min": 0.07049587378000001,
"max": 0.08964180678000001
}
]
}Scenario: Isolated linker: injected workspace repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.1216832012436364,
"stddev": 0.009919164404832688,
"median": 0.12060577338,
"user": 0.04662459454545454,
"system": 0.08504833818181817,
"min": 0.10322113688000001,
"max": 0.13985849288000002
},
{
"command": "pacquet@main",
"mean": 0.11714833272615384,
"stddev": 0.009126161220760843,
"median": 0.11625778138000001,
"user": 0.04553106307692308,
"system": 0.08104325076923077,
"min": 0.09500489388000001,
"max": 0.13628881688000002
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.750999752499999,
"stddev": 0.20066343831303957,
"median": 4.717418949900001,
"user": 2.5277541,
"system": 1.9680147600000002,
"min": 4.5130710944,
"max": 5.1813044374
},
{
"command": "pacquet@main",
"mean": 4.880367338800001,
"stddev": 0.26115458301949523,
"median": 4.7928684519,
"user": 2.5581314999999996,
"system": 1.9618405599999995,
"min": 4.5778985134,
"max": 5.2246944834
},
{
"command": "pnpr@HEAD",
"mean": 3.9293432147,
"stddev": 0.23704756690813666,
"median": 3.8355497554,
"user": 2.7343720999999994,
"system": 2.21073816,
"min": 3.6796002884,
"max": 4.4716372164000004
},
{
"command": "pnpr@main",
"mean": 3.8003333057000006,
"stddev": 0.09622807982471503,
"median": 3.7730784588999997,
"user": 2.4638055999999997,
"system": 2.02322576,
"min": 3.6754568504000003,
"max": 3.9911845424
}
]
}Scenario: GVS linker: fresh restore, hot cache + hot storeSame 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.
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.1592770064435294,
"stddev": 0.00993080681391092,
"median": 0.15872750062,
"user": 0.2017643352941176,
"system": 0.14946557411764705,
"min": 0.14491534062,
"max": 0.17529086662
},
{
"command": "pacquet@main",
"mean": 0.16689373628666665,
"stddev": 0.013428594609812754,
"median": 0.16658163762,
"user": 0.21483171111111105,
"system": 0.1521408911111111,
"min": 0.13997524262,
"max": 0.18864236662
},
{
"command": "pnpr@HEAD",
"mean": 0.1733221769057143,
"stddev": 0.008516933208781918,
"median": 0.17284006812000002,
"user": 0.20984288571428572,
"system": 0.14764756571428572,
"min": 0.16203965562,
"max": 0.18896955762
},
{
"command": "pnpr@main",
"mean": 0.17960342815333333,
"stddev": 0.011575013745517723,
"median": 0.17932965262,
"user": 0.21029909999999996,
"system": 0.16897554666666667,
"min": 0.15314263262,
"max": 0.20014266362
}
]
}Scenario: Store only: unlocked direct deps, cold cache + hot storeStore-only install (
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.5357694907799997,
"stddev": 0.10593191254511378,
"median": 1.53513087258,
"user": 0.9694255,
"system": 0.43413612000000007,
"min": 1.37562097308,
"max": 1.72953179408
},
{
"command": "pacquet@main",
"mean": 1.36239769848,
"stddev": 0.030496286523745933,
"median": 1.3576317410799998,
"user": 0.8144620999999999,
"system": 0.34328352000000006,
"min": 1.32213671908,
"max": 1.44166859708
}
]
}Scenario: Cargo: repeat install, hot cache + hot storeFrozen repeat install of a Cargo workspace (
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.027288102608505758,
"stddev": 0.0008389211104826707,
"median": 0.02707407062,
"user": 0.020111674252873565,
"system": 0.014748938390804595,
"min": 0.02634069462,
"max": 0.03326930862000001
},
{
"command": "pacquet@main",
"mean": 0.026916796876880728,
"stddev": 0.0008626777119006481,
"median": 0.02673541562,
"user": 0.01915497816513762,
"system": 0.015424974128440358,
"min": 0.02591188962,
"max": 0.033152588620000006
}
]
} |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #17686 +/- ##
==========================================
+ Coverage 92.91% 92.92% +0.01%
==========================================
Files 2092 2098 +6
Lines 269988 270411 +423
==========================================
+ Hits 250862 251283 +421
- Misses 19126 19128 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
PR Summary by QodoBreak the install and repeat-install module cycle
AI Description
Diagram
High-Level Assessment
Files changed (78)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can commit Qodo's fix in one click with committable suggestions (GitHub & GitLab)
|
[Low impact] The PR appears safe to merge. Reviews (2) · Last reviewed commit: "docs(package-manager): drop the comment ..." · Reviewed by Greptile |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
@coderabbitai resume |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Code review by qodo was updated up to the latest commit bb2b975 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR.
|
Covers the last open tooling item of pnpm/tasks#253: a function-level view from a rust-analyzer SCIP index, to find state that two places decide on. Related to pnpm/tasks#253. Two new `crate-layers` subcommands read the index: - `crate-layers overlaps --index <file>` lists the groups of functions in different top-level modules that access the same fields. `--crate <name>` keeps the groups with a function in that crate. - `crate-layers fields --index <file>` lists the types whose fields two top-level modules both access. `--type <path>` lists the functions that access one type's fields, by module. ### What counts - A function accesses a field where its body names the field after a `.`. Struct literals and patterns do not count: every function that builds a type names all of its fields, and counting them paired every two constructors of one options type. - `overlaps` pairs two functions in different top-level modules that share at least `--min-shared` fields (default 4), when those are at least half of the fields either one accesses. It drops a pair when one function reaches the other through calls, so a caller and its callee are not two deciders. That is where the call graph is used. - Functions in test-only modules are left out, through the module tree the other reports already read. - A type is named by its crate and full module path, such as `pnpm_config::settings::Config`, so two types of one name in a crate stay apart. ### Design decisions - The index has no read or write roles and no syntax, so the source text decides whether a reference is a `.field` access. The same comparison rejects a stale index: the command fails when a field is not where the index has it. - The functions one macro generates share the macro's range in the index, such as the methods of an `#[async_trait]` block (24 such items, 299 functions in non-test code). A reference there belongs to the function named last before it. Without this, every reference in such a block went to one method. - Decoding uses `prost` 0.12.6, which `Cargo.lock` already holds through libsql, so no crate is added to the lockfile. Each document is decoded on its own, which keeps the tool at about 330 MB for a 260 MB index. - The reports are not part of `crate-layers check` and CI does not run them. Making the index takes rust-analyzer about 3 minutes and 13 GB here. ### Results Measured on this machine: both reports take about 3 seconds in a debug build. The motivating case was the install state before #17686, where `install` and `optimistic_repeat_install` each held part of the rule "is the recorded install state still valid". On that tree (`81bdfdfcd01`), `fields` lists `pnpm_workspace_state::WorkspaceStateSettings` third, after `Config` and `Lockfile`: ``` pnpm_workspace_state::WorkspaceStateSettings: 51 fields accessed in 2 modules pnpm_package_manager::optimistic_repeat_install: 51 fields in 21 functions pnpm_package_manager::install: 10 fields in 4 functions ``` On `main` the type is second, with `install_state` as its main reader (60 fields in 17 functions) and `install` (14 fields in 6 functions) and `optimistic_repeat_install` (10 fields in 7 functions) still reading it directly. `overlaps` prints 112 groups on `main`. Two examples: ``` 4 functions, two of which share 9 fields: pnpm_engine_runtime_node_resolver::node_resolver::NodeResolver (5), pnpm_config::settings::Config (4) pnpm/crates/package-manager/src/add/specifier.rs:369 resolve_node_runtime_specifier pnpm/crates/package-manager/src/install_with_fresh_lockfile/resolver_setup.rs:366 node_resolver pnpm/crates/package-manager/src/resolution_policy.rs:233 create_configured_node_resolver pnpm/crates/resolving-default-resolver/src/standalone.rs:191 build_node_resolver 5 functions, two of which share 6 fields: pnpm_config::settings::Config (6) pnpm/crates/cli/src/cli_args/deploy/workspace_manifest.rs:32 from_config pnpm/crates/cli/src/cli_args/install/pnpr_request.rs:133 resolution_settings pnpm/crates/package-manager/src/fast_update_settings.rs:25 lockfile_settings_from_config pnpm/crates/package-manager/src/install/lockfile_freshness/settings.rs:178 resolution_settings_check pnpr/crates/pnpr/src/resolver/resolve.rs:430 check_frozen_settings ``` ### Limits - A call through a trait names the trait's method, not an implementation, so the call filter does not see through `dyn` or generic calls. - Implementations of one trait for several backends show up as groups. They are parallel by design. - A function nested in a macro-generated function takes the references that follow it in the outer function. The defect-hotspots skill now points at the two reports for the flaws they find candidates for. --------- Co-authored-by: Claude Fable 5.2 <[email protected]>
Summary
This is step 1 of pnpm/tasks#254. It breaks the module cycle between
installandoptimistic_repeat_install, the repeat-install fast path. The fast path now sits above the install, and the install never names it. The crate's largest module cycle drops from 12 modules to 6, thefast_update_*group, and themodule_cyclesbaseline is lowered to match.There are no behavior changes. Nothing changes for users, so there is no changeset.
How each dependency of install on the fast path was removed:
OptimisticRepeatInstallCheck,Scope,Decision,DeclaredManifests)install_statemodule, which both sides depend oninstall::workspace_state(discovery,per_project,stand_ins,from_files,nothing_to_install)optimistic_repeat_install::up_to_dateinstall::runcallingcheck_optimistic_repeat_install_inInstallRunOptionscarries the check as aRepeatInstallCheckfunction pointer. TheInstall::run*entry points, moved toinstall_entry, supply itThe public API of
pnpm-package-managerkeeps its paths, because the crate root re-exports both modules.One side cleanup was needed to stay within the 8-field lint:
lockfile_checkjoinsInstallSaveOptions. That turnssave.lockfile && lockfile_check.is_none(), which was repeated three times, intowrites_lockfile().The remaining steps of pnpm/tasks#254 are not covered here: a contract for every non-
Configinput, generated oracle edit axes, and the same work for v11.Squash Commit Body
Checklist
Verification:
pnpm test:rust -p pnpm-package-manager -p pnpm-cli: 7553 tests passed.pre-push-rust.shpassed (fmt, clippy, doc, dylint).just crate-layers checkpassed.Written by an agent (Claude Code, claude-opus-5-5).
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit
workspace:protocol as injected and convert dependencies usinglink:tofile:references across regular, development, and optional dependencies. Manifests without these dependency protocols remain unchanged. These adjustments keep local workspace and linked-package references explicit in the generated deployment manifest.