Repository navigation
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughGit resolutions now accept integrity metadata during lockfile loading. The metadata is discarded from in-memory resolution data, rewritten lockfiles, and SBOM checksums. Binary resolution checksums are now included in SBOM output. ChangesGit resolution integrity
Estimated code review effort: 3 (Moderate) | ~20 minutes Assessment against linked issues
Out-of-scope changes
Sequence Diagram(s)sequenceDiagram
participant LockfileParser
participant GitResolution
participant Installer
participant LockfileSerializer
participant SBOM
LockfileParser->>GitResolution: Load Git resolution with integrity
GitResolution->>GitResolution: Clear integrity metadata
GitResolution->>Installer: Provide commit-pinned resolution
Installer->>LockfileSerializer: Rewrite Git resolution without integrity
GitResolution->>SBOM: Provide resolution metadata
SBOM->>SBOM: Omit Git integrity checksum
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 QodoFix lockfile parsing for git resolutions that include integrity
AI Description
Diagram
High-Level Assessment
Files changed (10)
|
Confidence Score: 5/5The PR appears safe to merge because no blocking failure remains. No blocking failure remains. Reviews (8): Last reviewed commit: "test(sbom): assert the component exists ..." | Re-trigger Greptile |
Code Review by Qodo
1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Micro-Benchmark ResultsLinux |
|
Notes on the automated findings, so a human reviewer doesn't have to re-derive them: 1. Test debug output ( 2. 3. Fragile lockfile text edit in the e2e test — intentional, and it fails loudly rather than silently. Editing the file as text is the point: it simulates a lockfile written by something other than this engine, which is what the reported bug was about. Rebuilding the entry through this crate's own serializer would make the test circular (serialization is already covered by 4. Changeset missing a The failing Written by an agent (Claude Code, claude-opus-5). |
|
Code review by qodo was updated up to the latest commit 7d6dce6 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
The red Fix is up as #13749. Once that lands this branch should go green on a re-run; nothing here needs to change for it. Written by an agent (Claude Code, claude-opus-5). |
Integrated-Benchmark Report (Linux)Commit: Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm. 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.6994973247400003,
"stddev": 0.2053169282708243,
"median": 2.6368017963400003,
"user": 2.69416298,
"system": 2.0302834999999995,
"min": 2.4852323813400004,
"max": 3.07459205034,
"times": [
2.69753938934,
3.07459205034,
2.91900890634,
2.60305180934,
2.67055178334,
2.5091304463400004,
2.4852323813400004,
2.58079219834,
2.5243645763400004,
2.9307097063400005
]
},
{
"command": "pacquet@main",
"mean": 2.6861371083400005,
"stddev": 0.10724432931359337,
"median": 2.68742451584,
"user": 2.53434638,
"system": 1.9325468999999997,
"min": 2.4681223623400004,
"max": 2.8441736533400004,
"times": [
2.7615018593400005,
2.7599923063400005,
2.6919122043400003,
2.65333964034,
2.8441736533400004,
2.65372161334,
2.6829368273400003,
2.4681223623400004,
2.76596906434,
2.57970155234
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5907620020400004,
"stddev": 0.12186646643980731,
"median": 1.5877225778400001,
"user": 1.70225488,
"system": 1.5583319,
"min": 1.45125434734,
"max": 1.85377461934,
"times": [
1.45125434734,
1.57931162934,
1.62035163334,
1.51146115534,
1.71661308234,
1.59782035434,
1.46140343034,
1.51949624234,
1.85377461934,
1.59613352634
]
},
{
"command": "pnpr@main",
"mean": 1.6732243456400002,
"stddev": 0.13214404706881205,
"median": 1.66643350184,
"user": 1.8021770799999999,
"system": 1.6082440999999998,
"min": 1.4728009953399999,
"max": 1.86627039434,
"times": [
1.86627039434,
1.74012844934,
1.61975200634,
1.61400424434,
1.48476037634,
1.4728009953399999,
1.8129868153400002,
1.68069529734,
1.65217170634,
1.78867317134
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.33523634476,
"stddev": 0.01511246136521924,
"median": 0.33235844066000003,
"user": 0.30023834,
"system": 0.6522349999999999,
"min": 0.31160332466,
"max": 0.36189597666,
"times": [
0.36189597666,
0.32265990766,
0.33311645566000003,
0.32459845866000003,
0.35515297366000004,
0.33580947466,
0.34449412166000004,
0.33160042566000003,
0.33143232866,
0.31160332466
]
},
{
"command": "pacquet@main",
"mean": 0.34531904966,
"stddev": 0.018201013355999288,
"median": 0.34324814866,
"user": 0.31733903999999996,
"system": 0.6542342,
"min": 0.31355978766000003,
"max": 0.37751254566000003,
"times": [
0.35263356166000004,
0.32820347066,
0.31355978766000003,
0.34713421066,
0.35933732466,
0.33632841466,
0.33936208666,
0.33865341266,
0.36046568166000004,
0.37751254566000003
]
},
{
"command": "pnpr@HEAD",
"mean": 0.38916151666000004,
"stddev": 0.01745391788266312,
"median": 0.38234567716,
"user": 0.32486194,
"system": 0.7093159,
"min": 0.36295695366,
"max": 0.41764192966,
"times": [
0.40914235666000004,
0.38494545366,
0.37785613366000004,
0.41764192966,
0.40314088166,
0.37974590066,
0.37887419866,
0.37623186666,
0.36295695366,
0.40107949166
]
},
{
"command": "pnpr@main",
"mean": 0.37194355465999995,
"stddev": 0.01743101789100083,
"median": 0.37081617866,
"user": 0.31431254,
"system": 0.6995247,
"min": 0.35289786466,
"max": 0.40602988066,
"times": [
0.37611617666,
0.39484343866,
0.35323157366,
0.37056822466,
0.40602988066,
0.37106413266,
0.36383710566,
0.37449534766000003,
0.35635180166,
0.35289786466
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.91196206412,
"stddev": 0.07260328838098054,
"median": 2.92440015022,
"user": 2.7604664199999998,
"system": 2.0956315800000005,
"min": 2.77732835522,
"max": 3.0025944442199997,
"times": [
2.94200148322,
2.95472847522,
2.82403777022,
2.89163558722,
2.77732835522,
2.86898854522,
2.9654241132199997,
2.90679881722,
2.98608305022,
3.0025944442199997
]
},
{
"command": "pacquet@main",
"mean": 2.9740936533199998,
"stddev": 0.08055009929762541,
"median": 2.9492931367199997,
"user": 2.8372751199999993,
"system": 2.18641638,
"min": 2.91721375622,
"max": 3.17560321722,
"times": [
3.04558438822,
2.9174599892199997,
2.92814554822,
3.17560321722,
2.95954095522,
2.91721375622,
2.96393193822,
2.92338803022,
2.93904531822,
2.97102339222
]
},
{
"command": "pnpr@HEAD",
"mean": 1.78834734512,
"stddev": 0.16296487025063072,
"median": 1.78159876972,
"user": 1.9365432199999997,
"system": 1.8368758800000002,
"min": 1.6100103812200002,
"max": 2.0464672302199998,
"times": [
1.80188204122,
1.8897085522200001,
1.6102046782200001,
1.6718661752200001,
1.6220097962200002,
1.76131549822,
1.8531129572200002,
2.0464672302199998,
2.0168961412199997,
1.6100103812200002
]
},
{
"command": "pnpr@main",
"mean": 1.7239230064200002,
"stddev": 0.15776342352040554,
"median": 1.68955225722,
"user": 1.7865578199999999,
"system": 1.65982898,
"min": 1.53313790522,
"max": 1.9523848482200001,
"times": [
1.63537236422,
1.58238426222,
1.53313790522,
1.59953305922,
1.9523848482200001,
1.5890340182200002,
1.94675363922,
1.74373215022,
1.7970613302200003,
1.8598364872200002
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.55990086886,
"stddev": 0.03668468753576863,
"median": 0.57044725846,
"user": 0.7967278199999999,
"system": 0.90624752,
"min": 0.48935004496,
"max": 0.60280532296,
"times": [
0.58729141496,
0.56635639796,
0.56282794496,
0.60280532296,
0.57752733296,
0.54765726496,
0.48935004496,
0.50413528596,
0.58651955996,
0.57453811896
]
},
{
"command": "pacquet@main",
"mean": 0.58104548186,
"stddev": 0.045842777886634586,
"median": 0.57705101096,
"user": 0.8017719199999999,
"system": 0.97003572,
"min": 0.50999340196,
"max": 0.64514261096,
"times": [
0.55530466296,
0.50999340196,
0.53039786496,
0.57352565996,
0.58636231296,
0.63421795996,
0.63669549396,
0.5805763619600001,
0.64514261096,
0.5582384889600001
]
},
{
"command": "pnpr@HEAD",
"mean": 0.41785856136,
"stddev": 0.02383527986067193,
"median": 0.41646494495999997,
"user": 0.31162631999999996,
"system": 0.70511532,
"min": 0.38209489296,
"max": 0.45736935996,
"times": [
0.45736935996,
0.43690329996,
0.41826234796,
0.41466754196,
0.44716341296,
0.40621627396,
0.42177568796,
0.39348833896,
0.40064445696,
0.38209489296
]
},
{
"command": "pnpr@main",
"mean": 0.41716629456,
"stddev": 0.025532532863092847,
"median": 0.41424619346,
"user": 0.32503832000000005,
"system": 0.6805472199999998,
"min": 0.38085321196,
"max": 0.45144537896,
"times": [
0.41797637396,
0.45144537896,
0.39376104596,
0.39910612596,
0.41051601296,
0.38085321196,
0.44614373496,
0.44280923296,
0.39280676196,
0.43624506596
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.9663413935,
"stddev": 0.03738131206064696,
"median": 1.9588390810000003,
"user": 1.3267803399999998,
"system": 1.17151286,
"min": 1.9036261875,
"max": 2.0257405635,
"times": [
1.9594582365000002,
1.9436348745,
1.9900285215000002,
1.9582199255000001,
2.0257405635,
1.9988236235,
2.0039746605,
1.9344391455,
1.9036261875,
1.9454681965000002
]
},
{
"command": "pacquet@main",
"mean": 1.9141078929000002,
"stddev": 0.03257443726999684,
"median": 1.9152497090000002,
"user": 1.2338443399999999,
"system": 1.1104298599999995,
"min": 1.8444862835000002,
"max": 1.9487696315000003,
"times": [
1.8932061615000002,
1.9431393855,
1.9017170605000002,
1.9472168585,
1.8995287155000002,
1.9487696315000003,
1.9287823575000003,
1.9333304625,
1.9009020125,
1.8444862835000002
]
},
{
"command": "pnpr@HEAD",
"mean": 0.3701203064000001,
"stddev": 0.01643778126996067,
"median": 0.3773254125,
"user": 0.27865674,
"system": 0.63885486,
"min": 0.33695360550000003,
"max": 0.3913600935,
"times": [
0.3913600935,
0.36550685650000003,
0.3803246645,
0.37798732150000003,
0.38205659550000004,
0.3766635035,
0.3553552425,
0.33695360550000003,
0.3557440445,
0.37925113650000003
]
},
{
"command": "pnpr@main",
"mean": 0.3578129844,
"stddev": 0.014374237296044564,
"median": 0.3544416585,
"user": 0.25449054,
"system": 0.6184675599999999,
"min": 0.3307313315,
"max": 0.37789270550000004,
"times": [
0.37789270550000004,
0.3705617505,
0.3499300805,
0.3559678995,
0.3522561165,
0.3529154175,
0.3307313315,
0.3649572505,
0.3479976945,
0.37491959750000003
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.2448828096090909,
"stddev": 0.02553362215343425,
"median": 0.23593855870000002,
"user": 0.2131703472727273,
"system": 0.08636969818181817,
"min": 0.21286756970000004,
"max": 0.2857374347,
"times": [
0.2596153667,
0.2857374347,
0.2700070947,
0.2778857167,
0.2517138487,
0.2241519637,
0.21495845770000002,
0.21286756970000004,
0.23339417870000004,
0.22744071570000002,
0.23593855870000002
]
},
{
"command": "pacquet@main",
"mean": 0.24405923645000005,
"stddev": 0.027457781320282874,
"median": 0.23823346570000004,
"user": 0.20361020333333332,
"system": 0.09029429666666666,
"min": 0.20512041770000003,
"max": 0.28776479070000005,
"times": [
0.22498057170000002,
0.2760020957,
0.21933932070000003,
0.25043228370000004,
0.22054842470000002,
0.22310201870000002,
0.20512041770000003,
0.25457548570000005,
0.2676569017,
0.2731538787,
0.22603464770000004,
0.28776479070000005
]
},
{
"command": "pnpr@HEAD",
"mean": 0.10162767963103446,
"stddev": 0.006310992299869455,
"median": 0.1007256727,
"user": 0.02872075793103448,
"system": 0.014964914482758617,
"min": 0.0933835947,
"max": 0.1197793407,
"times": [
0.0963002397,
0.09471434170000001,
0.10376448170000001,
0.0962675947,
0.0977967197,
0.10302597470000001,
0.09393040970000001,
0.09920562170000001,
0.1053814517,
0.0943542027,
0.09562117170000001,
0.1023245817,
0.1031138937,
0.09961922770000001,
0.1007256727,
0.0933835947,
0.10633187070000001,
0.1050206457,
0.1005516407,
0.1029169167,
0.1048898427,
0.1197793407,
0.0986960597,
0.1050374787,
0.0977050737,
0.10369075770000001,
0.1196500917,
0.1031398337,
0.10026397670000001
]
},
{
"command": "pnpr@main",
"mean": 0.10259560212857143,
"stddev": 0.005738703529410929,
"median": 0.1025222082,
"user": 0.027357691428571425,
"system": 0.01710845142857143,
"min": 0.0948406927,
"max": 0.1192024517,
"times": [
0.0979255287,
0.10081614970000001,
0.0974906947,
0.1101680827,
0.1092567417,
0.1028612247,
0.1041280327,
0.10505553270000001,
0.0993471907,
0.0993264107,
0.1192024517,
0.11107779170000001,
0.0995039567,
0.1044141257,
0.0981564387,
0.0961100877,
0.09534118870000001,
0.10218319170000001,
0.1060807517,
0.10532071970000001,
0.0948406927,
0.09595590970000001,
0.09649440270000001,
0.0978340027,
0.10574262270000001,
0.1046321937,
0.10657663170000001,
0.1068341107
]
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.21952384958,
"stddev": 0.24359022733314875,
"median": 1.25305860958,
"user": 1.1917603688888887,
"system": 0.24032329777777775,
"min": 0.8512071625800001,
"max": 1.54363336858,
"times": [
0.8512071625800001,
1.1847898805800001,
1.54363336858,
0.8881058975800001,
1.50597665258,
1.09437003958,
1.25305860958,
1.34817037758,
1.30640265758
]
},
{
"command": "pacquet@main",
"mean": 1.1227750300244446,
"stddev": 0.29858099206056726,
"median": 0.9609329895800001,
"user": 1.1021538133333333,
"system": 0.20939407555555556,
"min": 0.8740756925800001,
"max": 1.69599487758,
"times": [
1.21148440158,
0.91431313558,
0.9609329895800001,
0.93498843758,
0.95407124858,
1.5368196205800002,
0.8740756925800001,
1.02229486658,
1.69599487758
]
},
{
"command": "pnpm@HEAD",
"mean": 4.155501068024445,
"stddev": 0.3469749337750339,
"median": 4.07468150858,
"user": 6.084992924444443,
"system": 0.4022940755555555,
"min": 3.70575490258,
"max": 4.77959569258,
"times": [
4.77959569258,
3.70575490258,
3.7717675655800003,
4.07468150858,
4.32497616358,
3.99807535458,
4.13100865758,
4.06425367158,
4.54939609558
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.808887017999999,
"stddev": 0.12665776028840545,
"median": 4.7905993382,
"user": 3.28940986,
"system": 2.29206228,
"min": 4.6987996662,
"max": 5.1368113032,
"times": [
4.8420371802,
4.7987835622,
4.6987996662,
4.7559358472,
4.833872245199999,
4.8186589581999995,
4.7157821192,
4.7057741842,
5.1368113032,
4.7824151142
]
},
{
"command": "pacquet@main",
"mean": 4.9233496699,
"stddev": 0.21157392531133187,
"median": 4.8113049682,
"user": 3.3381989600000006,
"system": 2.41121198,
"min": 4.7318545182,
"max": 5.2750544702,
"times": [
4.7670924172,
4.9761030031999995,
5.2419487872,
5.2750544702,
4.750724154199999,
4.7902923082,
4.8323176282,
4.7318545182,
5.1040261362,
4.7640832762
]
},
{
"command": "pnpr@HEAD",
"mean": 3.8090016751,
"stddev": 0.15993160780743987,
"median": 3.7310734517000004,
"user": 2.28533726,
"system": 2.0465323800000004,
"min": 3.6629100742000005,
"max": 4.1425012952,
"times": [
4.1425012952,
3.8424120352,
3.7021762362,
3.9173631912,
3.7377190192000005,
3.6629100742000005,
3.9853180612000005,
3.7244278842000003,
3.6707518402000003,
3.7044371142
]
},
{
"command": "pnpr@main",
"mean": 3.8086416600000006,
"stddev": 0.11777363067557901,
"median": 3.7693218257000005,
"user": 2.32310746,
"system": 2.0951109800000003,
"min": 3.6858531862,
"max": 4.0712468832,
"times": [
4.0712468832,
3.7395290232000002,
3.6858531862,
3.7320073082000005,
3.9092031682000004,
3.7165963422000003,
3.7991146282000003,
3.8651143232000003,
3.8432736272000003,
3.7244781102
]
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13748 |
| 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,512.12 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 363.38 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 290.33 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 88.49 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,390.29 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,638.12 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 292.14 ms |
`GitResolution` is `deny_unknown_fields` and declared no `integrity`, so a
lockfile entry shaped `{type: git, repo, commit, integrity: sha512-...}`
matched no `ResolutionSerde` variant and aborted the whole install with
ERR_PNPM_BROKEN_LOCKFILE. pnpm's built-in git fetcher computes no integrity,
but a custom fetcher's is written through to the resolution, and the
TypeScript CLI preserves the key across a read to write round trip, so
lockfiles in the wild carry it.
Declare the field so such an entry parses, and re-emit it on write so a
pacquet install doesn't churn the lockfile. `LockfileResolution::integrity()`
still reports `None` for git: the commit pins the content and the store key
is git-hosted rather than integrity-addressed, so nothing verifies a checkout
against the recorded hash.
Closes #13042
The test name, the frozen and re-resolving installs, and the final assertion already state what the prose repeated.
|
Code review by qodo was updated up to the latest commit 90398d2 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13748 +/- ##
=======================================
Coverage 88.12% 88.12%
=======================================
Files 622 622
Lines 101125 101129 +4
=======================================
+ Hits 89118 89124 +6
+ Misses 12007 12005 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Closes #13042.
Lockfiles in the wild carry
resolution: {type: git, repo, commit, integrity: sha512-…}. Nothing verifies a git checkout against that hash — thecommitpins the content, and the store key is git-hosted rather than integrity-addressed — and both stacks were wrong about it, in opposite directions.The Rust engine rejected the lockfile outright.
GitResolutionisdeny_unknown_fieldswith nointegrity, so the entry matched noResolutionSerdevariant and the whole install died withERR_PNPM_BROKEN_LOCKFILE— on a lockfile the TypeScript CLI reads without complaint.The TypeScript CLI passed the hash on as if it meant something. It echoed it back on every write, and
pnpm sbomread.integrityoff any resolution shape (collectComponents.ts), publishing it as a CycloneDX/SPDX checksum. An SBOM checksum reads as an assurance that the artifact was verified against it. For a git checkout, that verification never happened — so the field was quietly making a claim pnpm cannot back.So the fix is not "preserve it for round-trip fidelity" (what the first revision of this PR did). It is: accept the key so the lockfile loads, and then drop it everywhere it could be mistaken for a check.
Stringbecause the value is discarded: rejecting a malformed one would fail a lockfile pnpm reads fine.toLockfileResolutionstrips it on the way out, and the SBOM collector publishes only the tarball/registry hash it actually checks the downloaded bytes against.The hash leaves with the next lockfile write rather than provoking one of its own, so a frozen install is untouched and no one gets a surprise diff.
On provenance
I could not reproduce a pnpm that writes this field, and I want that on the record rather than buried. Against a
git+file://dependency, none of pnpm 9.15.9, 10.34.5, 11.10.0 (the version that produced the reporter's lockfile) or 11.21.0 records an integrity on atype: gitresolution, warm store and repeat installs included;addFilesFromDir— what the git fetcher returns — has nointegrityat runtime, not merely in its types. A custom fetcher can still land one via the(resolution as TarballResolution).integrity = …write inpackageRequester.ts, but I have not shown that to be the actual source, and an earlier revision of this description asserted it too confidently.That does not change what to do. Whatever wrote it, pnpm reads such a lockfile and the Rust engine must not die on it, and neither stack should keep advertising a hash it never checks.
Verification
Both halves were checked against real behavior, not just unit tests:
install_from_a_git_repo_whose_lockfile_records_an_integrity) installs a git dep, injects the hash, asserts a frozen install still succeeds, then asserts the key is gone once a dependency change rewrites the lockfile.Received: "sha512-AAAA"when the narrowing is reverted.Note for the reviewer
The SBOM collector now excludes every typed resolution, which also drops the
type: binarychecksum that pnpm does verify. That matchesintegrity_stringin the Rust CLI'ssbom.rstoday, so the two stacks agree; publishing verified binary hashes in both stacks would be a separate improvement.Squash Commit Body
Checklist
already linked to it solves it.
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).
Summary by CodeRabbit
Bug Fixes
New Features