Improve parser error context for manifests, lockfiles, and config#242
Improve parser error context for manifests, lockfiles, and config#242cijiugechu wants to merge 5 commits intoyarnpkg:mainfrom
Conversation
Greptile OverviewConfidence Score: 5/5
Important Files Changed
Last reviewed commit: 2a3d8cf |
Additional Comments (1)
In the Prompt To Fix With AIThis is a comment left during a code review.
Path: packages/zpm/src/lockfile.rs
Line: 297:302
Comment:
**Wrong locator inserted**
In the `aliased_idents` branch, this inserts `entry.resolution.clone()` as the key and uses `aliased_locator` only inside the `Resolution` (`lockfile.entries.insert(entry.resolution.clone(), ...)`). This will overwrite/collide with the non-aliased entry for the same `entry.resolution`, and it also means the aliased locator itself never becomes an entry key. The key here should be the aliased locator (or some other unique locator for the alias), otherwise aliased resolutions can be lost or corrupted when multiple aliases exist for the same underlying package.
How can I resolve this? If you propose a fix, please make it concise. |
⏱️ Benchmark Results
📊 Raw benchmark dataBase times: 2.646s, 2.655s, 2.721s, 2.626s, 2.513s, 2.642s, 2.640s, 2.528s, 2.587s, 2.613s, 2.588s, 2.620s, 2.649s, 2.569s, 2.681s, 2.593s, 2.563s, 2.635s, 2.660s, 2.621s, 2.581s, 2.686s, 2.534s, 2.651s, 2.542s, 2.542s, 2.620s, 2.515s, 2.631s, 2.657s Head times: 2.700s, 2.825s, 2.817s, 2.748s, 2.660s, 2.679s, 2.590s, 2.691s, 2.618s, 2.605s, 2.565s, 2.627s, 2.572s, 2.594s, 2.454s, 2.628s, 2.585s, 2.484s, 2.550s, 2.544s, 2.439s, 2.571s, 2.553s, 2.571s, 2.645s, 2.521s, 2.509s, 2.592s, 2.720s, 2.598s Benchmark: |
a0e3eef to
2a3d8cf
Compare
Part of #239 .