Repository navigation
Conversation
…InjectedDeps The #10433 guard keeps a workspace dependency's previously recorded `link:` when the run doesn't target it, compensating for `dedupeInjectedDeps` not running on every re-resolution path. It fired regardless of whether that pass was enabled, so with it disabled a freshly resolved `file:` was rewritten back to a stale `link:`. `pnpm deploy` is exactly that configuration: it injects every workspace dependency and disables `dedupeInjectedDeps` so the deployed tree is self-contained. Since 11.19.0 the deploy directory instead symlinked its workspace dependencies back into the source workspace, so copying it elsewhere left dangling links. Enabling `injectWorkspacePackages` with `dedupeInjectedDeps` off had the same problem: already-linked workspace dependencies never switched to injected copies. Gate the guard on `dedupeInjectedDeps`; with the pass off nothing may turn an injected workspace dependency back into a `link:`, so the fresh `file:` has to win. The pacquet side withholds the previous importers from its lockfile builder for the same reason. Fixes #13754 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…in the new deploy test `ProjectSnapshot.dependencies` is optional, so the assertion needs the non-null assertion the sibling tests use. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
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 (5)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (4)
📝 WalkthroughWalkthroughThe change updates workspace dependency resolution so stale ChangesWorkspace dependency injection
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant WorkspaceInstall
participant DependencyResolver
participant LockfileFinalization
participant LegacyDeploy
WorkspaceInstall->>DependencyResolver: Resolve injected workspace dependency
DependencyResolver->>LockfileFinalization: Submit resolved file: reference
LockfileFinalization-->>WorkspaceInstall: Write file:packages/b when dedupeInjectedDeps is disabled
WorkspaceInstall->>LegacyDeploy: Deploy using shared lockfile
LegacyDeploy-->>WorkspaceInstall: Materialize dependency inside deploy directory
Assessment against linked issues
Possibly related issues
Possibly related PRs
Suggested labels: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. 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 deploy/injected workspace deps reverting to stale link: when dedupeInjectedDeps is off
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Reviews (3): Last reviewed commit: "test(deps-resolver): anchor the new regr..." | Re-trigger Greptile |
Code Review by Qodo
1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Micro-Benchmark ResultsLinux |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13755 +/- ##
==========================================
- Coverage 88.12% 88.11% -0.01%
==========================================
Files 622 622
Lines 101125 101127 +2
==========================================
- Hits 89118 89110 -8
- Misses 12007 12017 +10 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…ous why The deploy rationale is pinned by the regression tests and the linked issue; repeating it at four sites just gives four copies to drift. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Code review by qodo was updated up to the latest commit 381d636 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
… gate The named boolean and the regression tests carry the meaning; the remaining Rust lines only correct statements that the gate made false. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Code review by qodo was updated up to the latest commit 88207a3 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
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.6928548664800003,
"stddev": 0.1600009632150958,
"median": 2.65097490518,
"user": 2.42399798,
"system": 1.8567698999999998,
"min": 2.48719629918,
"max": 2.9365177181799997,
"times": [
2.56708047918,
2.9365177181799997,
2.5792307541799997,
2.6290267631799997,
2.80209086718,
2.82587067818,
2.8945680441799997,
2.67292304718,
2.48719629918,
2.53404401418
]
},
{
"command": "pacquet@main",
"mean": 2.5399995244799998,
"stddev": 0.16096167835177555,
"median": 2.50452261918,
"user": 1.69036258,
"system": 1.368001,
"min": 2.3580324671799997,
"max": 2.7891651281799996,
"times": [
2.47469667118,
2.35913092318,
2.7891651281799996,
2.48736172118,
2.68188914918,
2.74240308418,
2.5216835171799996,
2.36564330018,
2.3580324671799997,
2.61998928318
]
},
{
"command": "pnpr@HEAD",
"mean": 1.5007977793799998,
"stddev": 0.2062664389922308,
"median": 1.39398264168,
"user": 1.22979088,
"system": 1.3187454000000003,
"min": 1.3531473841800001,
"max": 2.00530468318,
"times": [
1.52071149518,
2.00530468318,
1.67363642018,
1.3973408231800002,
1.39062446018,
1.36072542818,
1.3531473841800001,
1.55385878618,
1.38107897418,
1.37154933918
]
},
{
"command": "pnpr@main",
"mean": 1.5148140480800003,
"stddev": 0.15016456248548588,
"median": 1.5038521876800002,
"user": 1.08914088,
"system": 1.1478977,
"min": 1.35955479618,
"max": 1.75780281818,
"times": [
1.43225983618,
1.57544453918,
1.5786391181800001,
1.75780281818,
1.3619210371800001,
1.35955479618,
1.7288076781800001,
1.37077101518,
1.57579906618,
1.40714057618
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.26208461573999997,
"stddev": 0.007986255588178432,
"median": 0.26135577804,
"user": 0.23936609999999994,
"system": 0.5164180999999999,
"min": 0.24939747904000004,
"max": 0.27514838704,
"times": [
0.27166492504,
0.26729310004,
0.27514838704,
0.26573483004,
0.25650217304,
0.24939747904000004,
0.25928162104,
0.25618219104,
0.26342993504,
0.25621151604
]
},
{
"command": "pacquet@main",
"mean": 0.26322890743999994,
"stddev": 0.012608490104875508,
"median": 0.26050538854,
"user": 0.22753379999999995,
"system": 0.5326934,
"min": 0.24876710704000002,
"max": 0.28694240604,
"times": [
0.28154014604,
0.24876710704000002,
0.25036390004,
0.26611462404,
0.28694240604,
0.25927110204,
0.25392012904,
0.25725310804,
0.26637687704,
0.26173967504
]
},
{
"command": "pnpr@HEAD",
"mean": 0.30466017104,
"stddev": 0.026981589141403486,
"median": 0.30066235054,
"user": 0.24335299999999999,
"system": 0.5842486,
"min": 0.27260298804,
"max": 0.35246888804,
"times": [
0.27260298804,
0.28640059604,
0.29028334004,
0.28323210904,
0.35246888804,
0.31540395704,
0.31187248404,
0.34274161404,
0.31104136104,
0.28055437303999997
]
},
{
"command": "pnpr@main",
"mean": 0.29925576714,
"stddev": 0.019785833964525587,
"median": 0.29596714054,
"user": 0.272642,
"system": 0.5438230999999999,
"min": 0.27800233204,
"max": 0.34787214204,
"times": [
0.30507743304,
0.34787214204,
0.30011686404,
0.27800233204,
0.27871044404,
0.29068558704,
0.29378589804,
0.29155407004,
0.30860451804,
0.29814838304
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.7733268664799997,
"stddev": 0.15252052876251307,
"median": 2.7138884774800003,
"user": 2.0182042399999998,
"system": 1.64208322,
"min": 2.6114767274800004,
"max": 3.0771844764800003,
"times": [
2.6114767274800004,
2.73635459648,
2.94143570148,
2.65731721448,
2.6711267474800002,
2.69142235848,
2.64273274348,
2.87588529448,
3.0771844764800003,
2.82833280448
]
},
{
"command": "pacquet@main",
"mean": 2.6969004413799995,
"stddev": 0.0266555493178287,
"median": 2.69907397298,
"user": 1.8541667399999997,
"system": 1.55495502,
"min": 2.66131548348,
"max": 2.73841997748,
"times": [
2.71701334148,
2.66641838348,
2.70180360248,
2.6722770324800003,
2.71971862048,
2.71926755248,
2.73841997748,
2.69634434348,
2.6764260764800003,
2.66131548348
]
},
{
"command": "pnpr@HEAD",
"mean": 1.6353278787800005,
"stddev": 0.1587190476020478,
"median": 1.6566346179800002,
"user": 1.1542179399999999,
"system": 1.28684322,
"min": 1.4428521734800002,
"max": 1.84836398248,
"times": [
1.4705101684800002,
1.46109329548,
1.77457764948,
1.4428521734800002,
1.6457283934800002,
1.7852374714800001,
1.77646148348,
1.6675408424800002,
1.84836398248,
1.4809133274800002
]
},
{
"command": "pnpr@main",
"mean": 1.7015402444799999,
"stddev": 0.16416123887837394,
"median": 1.71723697748,
"user": 1.4120138399999997,
"system": 1.53761232,
"min": 1.50212184048,
"max": 1.98751916348,
"times": [
1.59919540448,
1.70805957948,
1.50212184048,
1.53610834848,
1.98751916348,
1.7425710354800001,
1.54707723148,
1.9387405204800001,
1.7275949454800001,
1.72641437548
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.5411732974400001,
"stddev": 0.0319512955723359,
"median": 0.5364605275400001,
"user": 0.74083864,
"system": 0.8311752199999999,
"min": 0.50316267954,
"max": 0.5956090405400001,
"times": [
0.54351468154,
0.5294063735400001,
0.5227260985400001,
0.5136612975400001,
0.5855339795400001,
0.5956090405400001,
0.50728493354,
0.50316267954,
0.55830694654,
0.5525269435400001
]
},
{
"command": "pacquet@main",
"mean": 0.51302234554,
"stddev": 0.03379332411394854,
"median": 0.51442132704,
"user": 0.7158197399999998,
"system": 0.78131612,
"min": 0.45766771254,
"max": 0.57011163054,
"times": [
0.54808523854,
0.5124351315400001,
0.47255731154,
0.51658328354,
0.53503429954,
0.57011163054,
0.48890619354000003,
0.5159538395400001,
0.51288881454,
0.45766771254
]
},
{
"command": "pnpr@HEAD",
"mean": 0.30225431234,
"stddev": 0.009318604260382125,
"median": 0.30480802003999996,
"user": 0.19421963999999997,
"system": 0.53902132,
"min": 0.28330347354,
"max": 0.31353200354,
"times": [
0.28990248654,
0.28330347354,
0.29935074854,
0.30504313654,
0.31176855654,
0.30487442053999997,
0.30305961554,
0.30474161954,
0.31353200354,
0.30696706254
]
},
{
"command": "pnpr@main",
"mean": 0.34822678723999995,
"stddev": 0.022289720715054532,
"median": 0.35063492354000003,
"user": 0.24744634,
"system": 0.59769852,
"min": 0.30841274754,
"max": 0.38523350054,
"times": [
0.33286204154,
0.30841274754,
0.33008353554,
0.33753235554,
0.35109173754,
0.36025196554,
0.37392985154,
0.35269202754,
0.35017810954,
0.38523350054
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.77100965686,
"stddev": 0.08433843773745496,
"median": 1.73030865316,
"user": 0.85483552,
"system": 0.84650168,
"min": 1.7134778381600002,
"max": 1.95279746616,
"times": [
1.73223767116,
1.89642193616,
1.95279746616,
1.78452126516,
1.71662292316,
1.7259076151600001,
1.73490412616,
1.72837963516,
1.7134778381600002,
1.72482609216
]
},
{
"command": "pacquet@main",
"mean": 1.7109310477600002,
"stddev": 0.007600231045438784,
"median": 1.7110510686600002,
"user": 0.77656192,
"system": 0.73330838,
"min": 1.69823205316,
"max": 1.72121139316,
"times": [
1.70249272716,
1.7116973291600002,
1.71866322016,
1.71448426016,
1.70693639516,
1.71040480816,
1.71918775716,
1.69823205316,
1.72121139316,
1.7060005341600002
]
},
{
"command": "pnpr@HEAD",
"mean": 0.30262755166,
"stddev": 0.006633474306822748,
"median": 0.30340790015999997,
"user": 0.21000052,
"system": 0.52433748,
"min": 0.29219621316,
"max": 0.31109355516,
"times": [
0.30043797416,
0.29639237516,
0.29692465616,
0.31109355516,
0.30906542216,
0.30873862616000003,
0.30734464516,
0.29770422316,
0.30637782616,
0.29219621316
]
},
{
"command": "pnpr@main",
"mean": 0.30543651876,
"stddev": 0.0052809888776418875,
"median": 0.30447727666,
"user": 0.21314122000000002,
"system": 0.5279424799999999,
"min": 0.29823982016,
"max": 0.31253072916,
"times": [
0.31202320316,
0.29823982016,
0.30922811716,
0.30101967816,
0.31253072916,
0.30125647416,
0.31066821616,
0.30442638616,
0.30044439616,
0.30452816716000003
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.20927626919384618,
"stddev": 0.01976266321699745,
"median": 0.20764967404,
"user": 0.18169174307692307,
"system": 0.05346912615384615,
"min": 0.18103073904000003,
"max": 0.25842324703999997,
"times": [
0.22393810804000003,
0.21249523704000003,
0.20146904804000001,
0.22088221104000003,
0.20738586604000003,
0.19562869404000002,
0.22009447904,
0.25842324703999997,
0.21140989504000002,
0.19119088604,
0.20764967404,
0.18899341504000003,
0.18103073904000003
]
},
{
"command": "pacquet@main",
"mean": 0.20607346646857147,
"stddev": 0.014287721902778956,
"median": 0.20944166304000003,
"user": 0.17324446285714284,
"system": 0.06290327999999999,
"min": 0.18298832004,
"max": 0.23387682104000002,
"times": [
0.20983287904000003,
0.18298832004,
0.21366786204000002,
0.18757825404000003,
0.22234105404,
0.20125183004000002,
0.18841213204,
0.20476270404000002,
0.21194277704000003,
0.20905044704000003,
0.21351851104000003,
0.23387682104000002,
0.21323692104000003,
0.19256801804
]
},
{
"command": "pnpr@HEAD",
"mean": 0.08957888888848482,
"stddev": 0.003251398368887753,
"median": 0.08921330904,
"user": 0.023331516969696972,
"system": 0.009103761212121211,
"min": 0.08588629204,
"max": 0.09937841704,
"times": [
0.08594178604,
0.08588629204,
0.08873935904000001,
0.08593663704,
0.08592743004,
0.08927554704,
0.09573182004,
0.08589951804,
0.08806481904,
0.09237652004000001,
0.09228990604,
0.09013203804,
0.08846187704,
0.09384055204,
0.09231260804000001,
0.09097252904,
0.09222322104,
0.09448618704,
0.09937841704,
0.08960239104,
0.08826335304,
0.09007086304,
0.08618026504,
0.08809527704,
0.08668082604,
0.08743595704,
0.08666812304,
0.09140875004,
0.08640230304,
0.08921330904,
0.08983811404,
0.08720991204,
0.09115682604
]
},
{
"command": "pnpr@main",
"mean": 0.0905982059775,
"stddev": 0.003682619074944685,
"median": 0.08989413004,
"user": 0.02330782,
"system": 0.0101746775,
"min": 0.08589678104,
"max": 0.10042519704,
"times": [
0.08810526604,
0.08639430704,
0.08978350204,
0.10042519704,
0.09887274604,
0.09577055204,
0.09589536804,
0.09191893804,
0.09168588004,
0.09014782704,
0.09272419204,
0.08914241704,
0.09556249104,
0.08833797304,
0.08735960404,
0.08703039504,
0.09052398504,
0.08805920004000001,
0.09199901904,
0.09314354204,
0.09000475804000001,
0.09078992504,
0.08745684604,
0.08849612104,
0.09376897804,
0.08853369104,
0.09212931404000001,
0.08729142504,
0.08589678104,
0.08782505904,
0.08636275904,
0.08770453204
]
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.8244205033777777,
"stddev": 0.1161157398571032,
"median": 0.8019213176,
"user": 0.8064713888888888,
"system": 0.13277163111111112,
"min": 0.6794815746,
"max": 0.9835299026000001,
"times": [
0.7179229566,
0.6794815746,
0.9835299026000001,
0.8014534876,
0.9751387466,
0.8100633456,
0.9396819166,
0.7105912826,
0.8019213176
]
},
{
"command": "pacquet@main",
"mean": 1.0202870331555556,
"stddev": 0.2729219826755672,
"median": 0.8927645486,
"user": 1.0054917222222222,
"system": 0.1797916311111111,
"min": 0.7531465586,
"max": 1.5067556246,
"times": [
0.7531465586,
0.8597748266,
1.0717567246,
0.8140321166,
0.8927645486,
1.0299977046,
1.4252662506,
0.8290889436,
1.5067556246
]
},
{
"command": "pnpm@HEAD",
"mean": 3.1662809284888893,
"stddev": 0.15918043163942572,
"median": 3.1742996516,
"user": 4.869449499999998,
"system": 0.2727498533333333,
"min": 2.9669895876,
"max": 3.4076301966,
"times": [
3.1898084386,
3.1742996516,
3.2145967026,
2.9669895876,
3.0748708496,
2.9776797656,
3.4076301966,
3.3959351496,
3.0947180146
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.803478779860001,
"stddev": 0.25574344009767247,
"median": 4.82189392876,
"user": 2.8055555400000003,
"system": 2.0798189,
"min": 4.44837006226,
"max": 5.35361092626,
"times": [
4.48577443626,
4.44837006226,
4.80598379626,
4.63531225326,
5.35361092626,
4.91407658726,
4.85148987026,
4.92331454426,
4.83780406126,
4.77905126126
]
},
{
"command": "pacquet@main",
"mean": 4.74825139086,
"stddev": 0.11534501615407097,
"median": 4.69127831726,
"user": 2.85575764,
"system": 1.9963564999999999,
"min": 4.64215219026,
"max": 4.97581333826,
"times": [
4.97581333826,
4.85500213326,
4.64215219026,
4.66245022726,
4.65632589726,
4.81416760026,
4.84354471426,
4.68826285526,
4.694293779260001,
4.65050117326
]
},
{
"command": "pnpr@HEAD",
"mean": 3.72670042286,
"stddev": 0.16488916642914234,
"median": 3.64092593226,
"user": 1.77922594,
"system": 1.7725994999999997,
"min": 3.5675200892600003,
"max": 3.99812549126,
"times": [
3.75108547226,
3.61135284126,
3.61599271726,
3.60475782626,
3.9830197602600004,
3.86718334226,
3.5675200892600003,
3.99812549126,
3.66585914726,
3.60210754126
]
},
{
"command": "pnpr@main",
"mean": 3.6835337152600003,
"stddev": 0.10214041328260336,
"median": 3.65324898176,
"user": 1.8419317399999997,
"system": 1.7649055999999999,
"min": 3.5500123612600003,
"max": 3.89388308826,
"times": [
3.62536576726,
3.80649080026,
3.89388308826,
3.5500123612600003,
3.65693648226,
3.64956148126,
3.59584625526,
3.73066959926,
3.6442483882600003,
3.68232292926
]
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/13755 |
| 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,442.85 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 292.20 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 283.30 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 85.89 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,353.15 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,567.52 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 272.60 ms |
…3292) Bumps the pinned packageManager field from 11.14.0 to 11.17.0, still safely below the known-bad 11.19.0/11.20.0 pnpm deploy legacy regression (pnpm/pnpm#13618, fixed by pnpm/pnpm#13755, not yet released). Adds a renovate packageRules entry disabling pnpm updates, correcting the version reference used in the now-superseded PR #3291 to 11.17.0 so the hold matches the version actually pinned here. Verified with a full pnpm install, check-workspace-constraints.js, typecheck, build, and representative jest runs across packages/components/buttons, packages/hooks, packages/utils, and design-system, all passing.
Bumps the packageManager field to pnpm 11.17.0, which stays below the known bad pnpm deploy legacy regression introduced in 11.19.0/11.20.0 (pnpm/pnpm#13618). Adds a Renovate packageRule disabling pnpm updates until pnpm/pnpm#13755 ships in a release, since that fix is merged but not yet published. Supersedes #1032 and #1034, which targeted an earlier pnpm version and an earlier draft of this hold rule.
* chore(deps): bump pnpm to 11.17.0 and hold via renovate Bumps the pinned pnpm version from 11.14.0 to 11.17.0 for consistency with the rest of the multi-repo pnpm/Renovate remediation effort. Both versions sit safely below the known-bad 11.19.0/11.20.0 range, where pnpm/pnpm#13618 broke `pnpm deploy --legacy` support. Also adds a renovate.json packageRules entry that disables pnpm updates, replacing the separate standalone hold PR for this repo. Renovate stays off pnpm until pnpm/pnpm#13755 ships in a release, at which point this repo can upgrade past 11.17.0 and the rule can be removed. * fix(deps): sync playground's stray packageManager pin to 11.17.0 playground/package.json carries its own independent packageManager field, separate from the root's. The 11.17.0 bump in this PR only touched the root, leaving playground still pinned to 11.14.0. Vercel deploys playground directly (it has its own vercel.json and deploy script), so corepack resolves the stale 11.14.0 pin there first, then conflicts once the build command's pnpm run -w build touches the now-bumped root package.json, producing exactly the failure seen in a live Vercel deploy: [ERROR] This project is configured to use 11.17.0 of pnpm. Your current pnpm is v11.14.0 Confirmed via a repo-wide grep that these are the only two packageManager fields in the repository, so no other nested pin needs the same fix. * fix(renovate): correct the pnpm-hold rule's regression version range Review feedback (GitHub Copilot and CodeRabbit, both independently verified against pnpm/pnpm#13618) on the audit-log PR for this same change flagged that the rule described the regression as starting 'past 11.14.0', when it actually starts at 11.19.0. 11.17.0, what this repo is pinned to, predates the regression entirely. Also corrected 'deploy: legacy' to the actual command, 'pnpm deploy --legacy'.
Summary
Since 11.19.0,
pnpm deploysymlinked workspace dependencies back into the source workspace instead of injecting copies, so the deploy directory stopped being self-contained — copying it elsewhere (a DockerfileCOPY, a tarball, an artifact upload) left dangling symlinks. NeitherforceLegacyDeploy: truenorinjectWorkspacePackages: truerestored the old behaviour.The cause is the #10433 guard added in #13112. It keeps a workspace dependency's previously recorded
link:when the run does not target it, compensating fordedupeInjectedDepsnot running on every re-resolution path. The guard fired regardless of whether that pass was enabled — andpnpm deployis exactly the configuration where it must not: deploy injects every workspace dependency (deployHooksetsdependenciesMeta[...].injected) and disablesdedupeInjectedDepsso the deployed tree is self-contained. The freshly resolvedfile:importer entry was rewritten back to the workspace lockfile's stalelink:, which then propagated into the deploy directory'snode_modules.This PR gates the guard on
dedupeInjectedDeps. With that pass off nothing may turn an injected workspace dependency back into alink:, so a recordedlink:is stale and the freshfile:has to win.The same hole existed outside deploy: enabling
injectWorkspacePackageswithdedupeInjectedDeps: falseon a workspace whose lockfile already recordedlink:never switched those dependencies to injected copies. Verified against both binaries before and after.It also fixes #13618, the same regression reported against a workspace dependency that carries
peerDependencies. Its exact reproduction now yields the expectedreadlink deploy/node_modules/shared→.pnpm/shared@[email protected]/node_modules/shared.Closes #13754
Closes #13618
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
pnpm deployso injected workspace dependencies are included in the deploy directory when workspace injection is enabled.Tests