Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughCargo now resolves root ChangesCargo source override resolution
Optimistic install timestamp tests
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~60 minutes Change: Bug fix · Severity of issue fixed: Medium Sequence Diagram(s)sequenceDiagram
participant pnpm_lockfile
participant resolution
participant git_fetcher
participant Cargo
pnpm_lockfile->>resolution: detect Cargo source overrides
resolution->>git_fetcher: validate Git transport policy
resolution->>Cargo: set GIT_ALLOW_PROTOCOL and resolve lockfile
Cargo-->>pnpm_lockfile: return generated or updated Cargo.lock
Assessment Against Linked Issues
Out-of-scope changes
Merge Risk: ⚪ Minimal · up to The Cargo override and Git protocol changes include coverage for the stated resolution, rollback, offline, and protocol-restriction behaviors. No merge-blocking risk is currently identified. ✨ 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 Cargo source overrides through isolated Cargo
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
Code Review by Qodo
1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Micro-Benchmark ResultsLinux |
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
|
Addressed Qodo's findings:
Written by an agent (Codex, GPT-5). |
|
Code review by qodo was updated up to the latest commit d2d94e2 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
@coderabbitai review Please review the current head, d2d94e2. The initial review still shows the earlier commit as in progress. The empty-override finding has been fixed, all 11,335 local tests and push hooks passed, and the matching documentation update is in pnpm/pnpm.io#931. Written by an agent (Codex, GPT-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; the linked-workspace scenario compares current Rust against main Rust. 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.45332645484,
"stddev": 0.14333345945217635,
"median": 2.4311147799399997,
"user": 1.43826406,
"system": 1.61215802,
"min": 2.2508469834400002,
"max": 2.73469342744
},
{
"command": "pacquet@main",
"mean": 2.39776744804,
"stddev": 0.1420889313897531,
"median": 2.35337094844,
"user": 1.3161818600000001,
"system": 1.4354859199999999,
"min": 2.25373065544,
"max": 2.58082653044
},
{
"command": "pnpr@HEAD",
"mean": 1.4275221988400002,
"stddev": 0.1308849608796056,
"median": 1.36197705994,
"user": 1.14627476,
"system": 1.36060882,
"min": 1.31283851644,
"max": 1.66300288744
},
{
"command": "pnpr@main",
"mean": 1.4653634200399999,
"stddev": 0.11617434743259035,
"median": 1.44126655344,
"user": 1.1291647599999999,
"system": 1.2032812199999998,
"min": 1.28764536044,
"max": 1.66753385944
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.20922866416,
"stddev": 0.008997798909257315,
"median": 0.21393448116000002,
"user": 0.23160178,
"system": 0.51080714,
"min": 0.19347679366,
"max": 0.21836107766
},
{
"command": "pacquet@main",
"mean": 0.20960088016,
"stddev": 0.012166642874378035,
"median": 0.20891350466000003,
"user": 0.21713658000000002,
"system": 0.52385704,
"min": 0.19141739866000002,
"max": 0.22908156566
},
{
"command": "pnpr@HEAD",
"mean": 0.22956091196,
"stddev": 0.01746556388488595,
"median": 0.22730657466,
"user": 0.25014618,
"system": 0.5118237400000001,
"min": 0.20859092466,
"max": 0.26978251966
},
{
"command": "pnpr@main",
"mean": 0.22743684595999997,
"stddev": 0.006089591496813615,
"median": 0.22610534866,
"user": 0.24476388,
"system": 0.5300275400000001,
"min": 0.21686527166000003,
"max": 0.23470858466000002
}
]
}Scenario: Isolated linker: repeat install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.006598710234394306,
"stddev": 0.000467998804116637,
"median": 0.006525552080000001,
"user": 0.004161848978622325,
"system": 0.002828969263657956,
"min": 0.0057664110800000005,
"max": 0.008935366080000002
},
{
"command": "pacquet@main",
"mean": 0.006593765406424866,
"stddev": 0.000683640123018204,
"median": 0.006411774080000001,
"user": 0.00391391896373057,
"system": 0.003059194715025906,
"min": 0.0055487120800000005,
"max": 0.009389296080000002
},
{
"command": "pnpr@HEAD",
"mean": 0.006261074871666676,
"stddev": 0.00038894662965798877,
"median": 0.0062111690800000004,
"user": 0.0038517610714285714,
"system": 0.002798205952380952,
"min": 0.005587275080000001,
"max": 0.008128916080000001
},
{
"command": "pnpr@main",
"mean": 0.011554389558494627,
"stddev": 0.002534697079298364,
"median": 0.011689394080000002,
"user": 0.006565689354838712,
"system": 0.00557251268817204,
"min": 0.005941809080000001,
"max": 0.01778916908
}
]
}Scenario: Isolated linker: repeat install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.008173224903188402,
"stddev": 0.00192331667514395,
"median": 0.007785185780000001,
"user": 0.004765958260869566,
"system": 0.0039998333333333335,
"min": 0.005983520280000001,
"max": 0.01753087928
},
{
"command": "pacquet@main",
"mean": 0.005782759081652894,
"stddev": 0.0002927771307367924,
"median": 0.0057886442800000005,
"user": 0.003491890358126721,
"system": 0.002726163911845729,
"min": 0.005172859280000001,
"max": 0.00758189928
},
{
"command": "pnpr@HEAD",
"mean": 0.006153706522937856,
"stddev": 0.0007073518198213622,
"median": 0.005932138280000001,
"user": 0.003961237514124294,
"system": 0.0026547132768361585,
"min": 0.005264811280000001,
"max": 0.00913713728
},
{
"command": "pnpr@main",
"mean": 0.006160908331630437,
"stddev": 0.0005344292369398335,
"median": 0.006067076780000001,
"user": 0.0038642518478260862,
"system": 0.0028025258152173937,
"min": 0.0053168482800000005,
"max": 0.008785848280000001
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.54064042972,
"stddev": 0.044029952272140724,
"median": 2.5331771432199996,
"user": 2.2130229999999997,
"system": 1.84451614,
"min": 2.48128732022,
"max": 2.6039748112199996
},
{
"command": "pacquet@main",
"mean": 2.6789811750199997,
"stddev": 0.017985227022303926,
"median": 2.6770741877199997,
"user": 2.6924132,
"system": 2.28835524,
"min": 2.6515916532199997,
"max": 2.71641524222
},
{
"command": "pnpr@HEAD",
"mean": 1.5991918756199999,
"stddev": 0.1259337080559727,
"median": 1.55481760572,
"user": 1.8707954999999998,
"system": 1.8211586400000002,
"min": 1.4933992012200001,
"max": 1.81324844522
},
{
"command": "pnpr@main",
"mean": 1.65706346212,
"stddev": 0.14026159874507904,
"median": 1.68186507122,
"user": 1.8458257999999996,
"system": 1.8157599400000002,
"min": 1.46568960222,
"max": 1.8683654382200001
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.47936269368000006,
"stddev": 0.0830629778468312,
"median": 0.48836959818000003,
"user": 0.75250546,
"system": 1.04549674,
"min": 0.35720110118000004,
"max": 0.57089105918
},
{
"command": "pacquet@main",
"mean": 0.33278318677999996,
"stddev": 0.017976759999756838,
"median": 0.33286901168000005,
"user": 0.5226538599999999,
"system": 0.73812854,
"min": 0.30650894718,
"max": 0.35912371918
},
{
"command": "pnpr@HEAD",
"mean": 0.26996159358000005,
"stddev": 0.008921598395736485,
"median": 0.27045827168000003,
"user": 0.20684435999999998,
"system": 0.49280013999999994,
"min": 0.25893134018,
"max": 0.28313545718
},
{
"command": "pnpr@main",
"mean": 0.26941867828,
"stddev": 0.002601939420420912,
"median": 0.26948165618,
"user": 0.21123306,
"system": 0.52532194,
"min": 0.26477474218,
"max": 0.27265386118
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.5705751870800002,
"stddev": 0.016938898441953357,
"median": 1.56808996228,
"user": 0.8604094,
"system": 1.01964682,
"min": 1.55290424678,
"max": 1.61078586578
},
{
"command": "pacquet@main",
"mean": 1.55801603338,
"stddev": 0.018469201395132143,
"median": 1.5555627412800002,
"user": 0.8330037999999998,
"system": 0.99133232,
"min": 1.51903370178,
"max": 1.58236215278
},
{
"command": "pnpr@HEAD",
"mean": 0.29953750147999997,
"stddev": 0.009350629371668709,
"median": 0.29726656728,
"user": 0.23861179999999999,
"system": 0.6149559199999999,
"min": 0.28645598278,
"max": 0.31466647678
},
{
"command": "pnpr@main",
"mean": 0.29849262938,
"stddev": 0.006063106599746397,
"median": 0.29893087378,
"user": 0.2482179,
"system": 0.5993540199999999,
"min": 0.28650794278,
"max": 0.30728469678
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.18974471353333336,
"stddev": 0.012662037210408043,
"median": 0.1853773664,
"user": 0.19162283333333333,
"system": 0.06594376666666665,
"min": 0.17520286940000002,
"max": 0.2236508624
},
{
"command": "pacquet@main",
"mean": 0.18643530479999998,
"stddev": 0.012636743592161846,
"median": 0.1824304064,
"user": 0.19213963333333337,
"system": 0.06569016666666666,
"min": 0.1765365744,
"max": 0.2268192674
},
{
"command": "pnpr@HEAD",
"mean": 0.09546663882424242,
"stddev": 0.012211506742393467,
"median": 0.0879690224,
"user": 0.03452608787878788,
"system": 0.013956181818181815,
"min": 0.0859552264,
"max": 0.1240419834
},
{
"command": "pnpr@main",
"mean": 0.11167556664999999,
"stddev": 0.004733071163716139,
"median": 0.1118922469,
"user": 0.047734425,
"system": 0.019002416666666664,
"min": 0.1047320704,
"max": 0.12233860740000001
}
]
}Scenario: Isolated linker: peer-heavy resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.6029247314666668,
"stddev": 0.05741399499780069,
"median": 0.6021266238,
"user": 0.6316972222222224,
"system": 0.14210204888888886,
"min": 0.5311323908000001,
"max": 0.6891772428
},
{
"command": "pacquet@main",
"mean": 0.5892448755777777,
"stddev": 0.07041609870286285,
"median": 0.5892037668000001,
"user": 0.6172461111111112,
"system": 0.1346674933333333,
"min": 0.5006294488,
"max": 0.7075233998
},
{
"command": "pnpm@HEAD",
"mean": 2.9981739676888886,
"stddev": 0.10072411865450633,
"median": 2.9642364528000003,
"user": 4.704371222222222,
"system": 0.2299463822222222,
"min": 2.8697115748,
"max": 3.1887772288000003
}
]
}Scenario: Isolated linker: linked-workspace resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.16431697250352942,
"stddev": 0.0031380869160922958,
"median": 0.16341575168,
"user": 0.12611003529411763,
"system": 0.07250043411764705,
"min": 0.15910289368,
"max": 0.17120383068
},
{
"command": "pacquet@main",
"mean": 0.23604993997411766,
"stddev": 0.05823687961895982,
"median": 0.26493665568,
"user": 0.17144838823529412,
"system": 0.11797984588235293,
"min": 0.15931323468,
"max": 0.31716431068
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.440806199640001,
"stddev": 0.13688335748235833,
"median": 4.41045339604,
"user": 1.6209272599999998,
"system": 1.7231908,
"min": 4.30110992954,
"max": 4.75608747354
},
{
"command": "pacquet@main",
"mean": 4.40168320254,
"stddev": 0.14488831922272852,
"median": 4.33872983854,
"user": 1.38317516,
"system": 1.5952560999999998,
"min": 4.28173642654,
"max": 4.68239962254
},
{
"command": "pnpr@HEAD",
"mean": 3.5283848089400003,
"stddev": 0.10164441827463827,
"median": 3.5050841100400003,
"user": 1.3639983599999996,
"system": 1.4170235000000002,
"min": 3.3672049795400003,
"max": 3.68442501654
},
{
"command": "pnpr@main",
"mean": 3.4453131263400003,
"stddev": 0.09928387421112338,
"median": 3.39662558954,
"user": 1.35119866,
"system": 1.4670862,
"min": 3.34693897854,
"max": 3.63969230054
}
]
}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.11148267590000001,
"stddev": 0.009224291600514871,
"median": 0.1080153883,
"user": 0.1364165,
"system": 0.1201708,
"min": 0.1013007463,
"max": 0.1354929903
},
{
"command": "pacquet@main",
"mean": 0.10963491368095239,
"stddev": 0.005143253849049105,
"median": 0.10992787130000001,
"user": 0.13939654761904766,
"system": 0.12515251428571428,
"min": 0.1004070983,
"max": 0.1217764653
},
{
"command": "pnpr@HEAD",
"mean": 0.11856501670909093,
"stddev": 0.004951428897088865,
"median": 0.11736423330000001,
"user": 0.1397505,
"system": 0.1275187090909091,
"min": 0.1121329923,
"max": 0.1321571833
},
{
"command": "pnpr@main",
"mean": 0.11669887806190476,
"stddev": 0.005407785962084848,
"median": 0.1150286723,
"user": 0.1396629761904762,
"system": 0.12184313333333333,
"min": 0.1110503193,
"max": 0.1288111983
}
]
} |
|
| Project | pnpm's project |
| Branch | pr/14955 |
| 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) |
|---|---|---|
| gvs-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 112.13 ms |
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 1,493.40 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 286.46 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 258.93 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 85.96 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,312.84 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,367.20 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 208.59 ms |
| isolated-linker.repeat-install.cold-cache.hot-store | 📈 view plot | 5.26 ms |
| isolated-linker.repeat-install.hot-cache.hot-store | 📈 view plot | 5.59 ms |
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
|
Fixed the coverage CI failure in commit 325d6cf. The catalog fixture assigned equal timestamps to its manifest and lockfile. When those timestamps landed on a whole second, the freshness check correctly required a loaded lockfile. I reproduced that failure with deterministic timestamps, then gave the manifest, lockfile, and validation distinct whole-second timestamps. All five catalog tests and all 11,335 tests in Written by an agent (Codex, GPT-5). |
|
Code review by qodo was updated up to the latest commit 325d6cf |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
git status --short
git diff --stat HEAD^ HEAD
git diff --find-renames -- pnpm/crates/cli/src/cargo_deps/lockfile.rs pnpm/crates/cli/src/cargo_deps/resolution.rs pnpm/crates/cli/src/cargo_deps/resolution/tests.rs pnpm/crates/cli/tests/suite/cargo_git_install.rs pnpm/crates/cli/tests/suite/cargo_install.rs pnpm/README.md .changeset/cargo-source-overrides.md
ast-grep outline pnpm/crates/cli/src/cargo_deps/resolution.rs --items all
ast-grep outline pnpm/crates/cli/src/cargo_deps/lockfile.rs --items all
rg -n -C 5 'has_source_overrides|has_override_sources|resolve_with_cargo|read_or_resolve_lockfile|cargo\.indexUrl|source overrides' \
pnpm/crates/cli/src/cargo_deps/resolution.rs \
pnpm/crates/cli/src/cargo_deps/lockfile.rs \
pnpm/crates/cli/src/cargo_deps/resolution/tests.rs \
pnpm/crates/cli/tests/suite/cargo_git_install.rs \
pnpm/crates/cli/tests/suite/cargo_install.rs \
pnpm/README.md
git diff --check HEAD^ HEADLength of output: 14185 🏁 Script executed: #!/bin/bash
set -euo pipefail
gh pr view 14955 --repo pnpm/pnpm --json baseRefOid,headRefOid,commits,files --jq '{baseRefOid, headRefOid, commits: [.commits[] | {oid, messageHeadline}], files: [.files[] | .path]}'
base=$(gh pr view 14955 --repo pnpm/pnpm --json baseRefOid --jq .baseRefOid)
git diff --check "$base"...HEAD
git diff --find-renames --unified=50 "$base"...HEAD -- \
pnpm/crates/cli/src/cargo_deps/lockfile.rs \
pnpm/crates/cli/src/cargo_deps/resolution.rs \
pnpm/crates/cli/src/cargo_deps/resolution/tests.rs \
pnpm/crates/cli/tests/suite/cargo_git_install.rs \
pnpm/crates/cli/tests/suite/cargo_install.rs \
pnpm/README.md \
.changeset/cargo-source-overrides.md
sed -n '1,190p' pnpm/crates/cli/src/cargo_deps/resolution.rs
sed -n '122,170p' pnpm/crates/cli/src/cargo_deps/lockfile.rs
sed -n '55,115p' pnpm/crates/cli/src/cargo_deps/resolution/tests.rs
rg -n -C 4 'patch|replace|frozen|rollback|revision|custom.*index|index_url|Cargo.lock' \
pnpm/crates/cli/tests/suite/cargo_git_install.rs \
pnpm/crates/cli/tests/suite/cargo_install.rsLength of output: 95235 🏁 Script executed: #!/bin/bash
set -euo pipefail
git show --check --format=fuller 325d6cf20627375125b0cee03abb5c872f91e7bd
git show --format= --unified=70 325d6cf20627375125b0cee03abb5c872f91e7bd -- pnpm/crates/package-manager/src/optimistic_repeat_install/tests/catalogs.rs
rg -n -C 12 'read_or_resolve_lockfile\s*\(' pnpm/crates/cli/src
rg -n -C 12 'CargoLockfilePolicy|cargo_lock_path|Cargo\.lock' pnpm/crates/cli/src/cargo_deps pnpm/crates/cli/src | head -n 500
git diff --numstat 3f7d4c04c83f693b13a97642760c395467f4e945...HEAD
git diff --check 3f7d4c04c83f693b13a97642760c395467f4e945...HEADLength of output: 54430
I found no issues in the reviewed changes. The empty I did not run repository tests in this environment. You are interacting with an AI system. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #14955 +/- ##
==========================================
+ Coverage 90.98% 91.00% +0.02%
==========================================
Files 1275 1276 +1
Lines 171006 171079 +73
==========================================
+ Hits 155583 155687 +104
+ Misses 15423 15392 -31 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
|
Windows CI exposed the same manifest/lockfile timestamp collision in a second freshness fixture. Commit 5e18bbe shares timestamp ordering across the optimistic-repeat-install fixtures: manifests are older than the wanted lockfile, and the lockfile is older than validation. Validation stays in the past so later fixture rewrites are still detected. The catalog regression seeds all its files with an equal whole-second timestamp. All 98 freshness-related tests, all 11,335 tests in Written by an agent (Codex, GPT-5). |
|
Code review by qodo was updated up to the latest commit 5e18bbe |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Route root source overrides through the isolated Cargo fallback because nodeps metadata omits their effect on the dependency graph. Validate Git override transports before resolution and preserve the existing edit transaction and frozen-lock behavior. Cover path and pinned Git patches, lockfile generation and dependency edits, revision changes, rollback, helper isolation, offline validation, and legacy replacement identities. Document the custom-registry limit. Closes #14950.
Only route to Cargo when patch source tables or the replace table contain entries. Empty tables do not affect the graph and should retain native and pnpr resolution, including support for a custom Cargo index. Add regression cases for empty patch, source, and replacement tables.
Give the registry-catalog fixture distinct whole-second timestamps for the manifest, wanted lockfile, and workspace validation. Equal whole-second manifest and lockfile times correctly require a content check, which the fixture cannot perform without a loaded lockfile. Reproduced the coverage CI failure with equal deterministic timestamps, then verified the corrected fixture and all catalog tests.
Coverage and Windows CI exposed fixtures with identical manifest and wanted-lockfile timestamps. Whole-second mtimes correctly require a content check when those timestamps match, but these fixtures do not provide a loaded lockfile. Share timestamp ordering across the optimistic-repeat-install fixtures. Backdate manifests by an additional second while keeping the lockfile and validation in the past, so later fixture rewrites still count as changes. Seed the catalog regression with equal whole-second timestamps.
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
|
Rebased onto the latest fetched main, 9188726, and force-pushed with lease. The Cargo Git test conflict preserves main’s recursive-submodule tests alongside the expanded source-override coverage. All 11,348 tests in Written by an agent (Codex, GPT-5). |
|
Code review by qodo was updated up to the latest commit 49216af |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Patched crates outside the workspace inventory can declare Git sources that metadata discovery does not validate. With Cargo command-line Git fetching and an enabled helper protocol, resolution can execute a helper before the generated lockfile reaches transport validation. Apply the Git fetcher supported protocol policy to Cargo subprocesses. Reuse the allowlist filter and configured policies, preserving configured bans and narrower inherited allowlists. Keep top-level user protocol semantics while retaining recursive submodule restrictions. Reproduce helper execution from an external path patch and verify the helper is blocked before execution. Keep usage guidance in the companion website PR and remove the added repository README section.
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
|
Code review by qodo was updated up to the latest commit 1dacde1 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Return an empty Git protocol allowlist when the Git binary is absent. Cargo can still generate a lockfile for path-only overrides, and any Git client reached through Cargo home configuration remains blocked. Read Git protocol settings from the workspace while keeping the Cargo subprocess isolated in the toolchain directory. This preserves local repository bans without loading checkout Cargo executable helpers. Reproduce both review findings and verify path-only generation without Git, an offline locked Cargo check, and a local file transport ban.
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
|
Code review by qodo was updated up to the latest commit 911e4b0 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Checked the remaining findings on
Written by an agent (Codex, GPT-5). |
Cargo metadata without dependencies does not expose root source overrides. Route workspaces with entries in patch or replace tables to the isolated Cargo resolver before attempting native or pnpr resolution. Validate declared Git override transports using the same policy as direct Git dependencies. Constrain Cargo Git fetching to supported protocols before transitive dependencies can execute helpers. Share the Git protocol policy while preserving configured bans and narrower inherited allowlists. Reuse the existing resolver isolation and native dependency-edit transaction. Cover path and pinned Git patches, missing-lock generation, adding a registry crate to an existing patched lock, revision changes with managed sources, frozen behavior, rollback, checkout helper isolation, and offline Cargo validation. Also verify legacy path replacement package identities. Share timestamp ordering across freshness-check fixtures after coverage and Windows CI exposed equal manifest and lockfile timestamp collisions. Seed the catalog regression with equal whole-second file timestamps. The fallback still requires the default cargo.indexUrl. The companion website PR documents this limit and Cargo configuration and offline behavior. Closes pnpm#14950.
Summary
Resolve root Cargo.toml
[patch]and[replace]overrides through the existing isolated Cargo fallback. This lets pnpm generate missing Cargo.lock files and edit crate dependencies in patched workspaces, preserving Cargo package identities and Git revision pins.The change applies only to pnpm v12. The Cargo integration does not exist in v11. Custom
cargo.indexUrlresolution remains unsupported by the fallback; existing-lock installs remain supported, and the limitation is documented.Closes #14950.
The matching website update is pnpm/pnpm.io#931, kept as a draft until this change is released. Empty override tables continue using native or pnpr resolution.
Coverage and Windows CI exposed equal-timestamp collisions in freshness-check fixtures. A shared fixture helper now keeps manifests older than the lockfile and the lockfile older than validation, including on filesystems with whole-second precision. The catalog regression seeds every file with an equal whole-second timestamp.
Cargo lockfile resolution also applies the Git fetcher's supported protocol policy to transitive dependencies, preserving configured bans and narrower inherited allowlists. The regression reproduces helper execution from a path patch outside the workspace. Path-only resolution is also tested without Git on PATH. Cargo command-line Git fetching honors repository-local protocol bans. Usage details live in the companion website PR; repository READMEs are unchanged.
Rebased onto main at
91887267f5.Validation:
just readypassed, including 11,353 Rust tests, workspace checks, formatting, and linting. Test fixtures used a dedicated/var/tmpdirectory because/tmphit its quota.Squash Commit Body
Checklist
already linked to it solves it.
are implemented in every affected version.
Written by an agent (Codex, GPT-5).
Summary by CodeRabbit
New Features
[patch]and[replace]overrides from manifests.Bug Fixes