Repository navigation
Commit 0baea26
Read the PDM files key beside the code that writes it
Review follow-up for the extras rollback fix.
The check's reading of a `[metadata.files]` key is now
`pdm_lock::files_key_package`, next to `legacy_files_key`, which builds
the key, with a test that every key the writer builds for the PDM 0.x
fixtures reads back as its unit's package. The two can no longer drift
apart unnoticed, which is how the 5.1.0 refusal shipped.
The `[<extras>]` suffix is dropped only for `files` / `hashes` keys.
A `sources` key is read as before, so `"six[socks]"` under
`[tool.uv.sources]` is not six's own entry.
Tests: revert_round_trip_restores_a_legacy_lock_with_extras vendors
and reverts urllib3 in the native PDM 0.12.3 extras lock through
wire_pdm and revert_pdm, the path that failed. Without the fix it
fails with the refusal users saw. The confinement sweep takes its
fixture list from pdm_lock's tests instead of a copy.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>1 parent 213ae94 commit 0baea26
3 files changed
Lines changed: 128 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
117 | 127 | | |
118 | 128 | | |
119 | 129 | | |
| |||
497 | 507 | | |
498 | 508 | | |
499 | 509 | | |
500 | | - | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
501 | 524 | | |
502 | 525 | | |
503 | 526 | | |
| |||
508 | 531 | | |
509 | 532 | | |
510 | 533 | | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
| 534 | + | |
522 | 535 | | |
523 | 536 | | |
524 | 537 | | |
| |||
545 | 558 | | |
546 | 559 | | |
547 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
548 | 591 | | |
549 | 592 | | |
550 | 593 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1216 | 1216 | | |
1217 | 1217 | | |
1218 | 1218 | | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
1222 | | - | |
1223 | | - | |
1224 | | - | |
1225 | | - | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
1229 | 1219 | | |
1230 | 1220 | | |
1231 | | - | |
1232 | | - | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
1233 | 1227 | | |
1234 | 1228 | | |
1235 | 1229 | | |
| |||
3691 | 3685 | | |
3692 | 3686 | | |
3693 | 3687 | | |
| 3688 | + | |
3694 | 3689 | | |
3695 | | - | |
3696 | | - | |
3697 | | - | |
3698 | | - | |
3699 | | - | |
3700 | | - | |
3701 | | - | |
3702 | | - | |
3703 | | - | |
3704 | | - | |
3705 | | - | |
3706 | | - | |
3707 | | - | |
3708 | | - | |
3709 | | - | |
3710 | | - | |
3711 | | - | |
| 3690 | + | |
| 3691 | + | |
3712 | 3692 | | |
3713 | 3693 | | |
3714 | 3694 | | |
| |||
3726 | 3706 | | |
3727 | 3707 | | |
3728 | 3708 | | |
3729 | | - | |
| 3709 | + | |
| 3710 | + | |
3730 | 3711 | | |
3731 | 3712 | | |
3732 | 3713 | | |
3733 | 3714 | | |
3734 | 3715 | | |
3735 | 3716 | | |
3736 | 3717 | | |
| 3718 | + | |
| 3719 | + | |
3737 | 3720 | | |
3738 | 3721 | | |
3739 | 3722 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1328 | 1328 | | |
1329 | 1329 | | |
1330 | 1330 | | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
1331 | 1391 | | |
1332 | 1392 | | |
1333 | 1393 | | |
| |||
0 commit comments