Commit 7825622
* Start fix for #407, #408
Assisted-by: Claude Code:claude-opus-5-5
* Add failing tests for uv pylock rollback shape
A uv pip compile pylock (no index key) refuses to roll back (#407),
and a restored pylock entry gets millisecond upload-time values where
uv writes whole seconds (#408).
Assisted-by: Claude Code:claude-opus-5-5
* Fix uv pylock rollback refusing and drifting
Hosted rollback, remove and the vendored takeover refused every
pylock.toml written by `uv pip compile`, because that command records
no `index` key and the restore only read the registry from one (#407).
Packages without an `index` whose files are all on PyPI now show the
registry, and the entry is restored without an `index` too.
A rolled-back pylock also never matched what uv writes: restored
`upload-time` values kept milliseconds, while uv writes whole seconds
in pylock files (#408). The restore now follows the lock's own
precision.
The real-uv hosted e2e lanes for `uv export` and `uv pip compile`
pylocks now lock a PyPI sibling and require a byte-exact rollback.
Assisted-by: Claude Code:claude-opus-5-5
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 242fef7 commit 7825622
4 files changed
Lines changed: 235 additions & 34 deletions
File tree
- crates
- socket-patch-cli
- tests/vex_e2e_common
- socket-patch-core
- src/patch/redirect/upstream
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
850 | 850 | | |
851 | 851 | | |
852 | 852 | | |
853 | | - | |
| 853 | + | |
854 | 854 | | |
855 | 855 | | |
856 | 856 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
691 | | - | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
692 | 695 | | |
693 | 696 | | |
694 | 697 | | |
| |||
754 | 757 | | |
755 | 758 | | |
756 | 759 | | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
757 | 764 | | |
758 | 765 | | |
759 | | - | |
760 | | - | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
761 | 770 | | |
762 | 771 | | |
763 | 772 | | |
| |||
773 | 782 | | |
774 | 783 | | |
775 | 784 | | |
776 | | - | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
777 | 792 | | |
778 | 793 | | |
779 | 794 | | |
| |||
1171 | 1186 | | |
1172 | 1187 | | |
1173 | 1188 | | |
1174 | | - | |
| 1189 | + | |
1175 | 1190 | | |
1176 | 1191 | | |
1177 | 1192 | | |
| |||
1611 | 1626 | | |
1612 | 1627 | | |
1613 | 1628 | | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
1614 | 1634 | | |
1615 | 1635 | | |
1616 | 1636 | | |
| |||
1624 | 1644 | | |
1625 | 1645 | | |
1626 | 1646 | | |
1627 | | - | |
| 1647 | + | |
1628 | 1648 | | |
1629 | 1649 | | |
1630 | 1650 | | |
1631 | 1651 | | |
1632 | 1652 | | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
1633 | 1661 | | |
1634 | 1662 | | |
1635 | 1663 | | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
1636 | 1669 | | |
1637 | 1670 | | |
1638 | 1671 | | |
| |||
0 commit comments