Repository navigation
Commit cb13448
committed
Fix rollback dropping hidden cache records
Pass shadowed_registry: true to cargo_copies_still_patched in rollback
to detect patched copies in the shared /usr/local/cargo/registry/src even
when shadowed by a vendor directory. This prevents dropping manifest
records for still-patched cache copies, matching scan prune's behavior.
Fixes bug where rollback with vendor/ present would skip cache-patched
crates, succeed on vendored copies, then drop the manifest record,
orphaning the patched cache copy with no way to restore it.1 parent fb9fb3a commit cb13448
2 files changed
Lines changed: 5 additions & 2 deletions
File tree
- crates
- socket-patch-cli/src/commands
- socket-patch-core/src/patch/redirect/upstream
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2040 | 2040 | | |
2041 | 2041 | | |
2042 | 2042 | | |
2043 | | - | |
| 2043 | + | |
2044 | 2044 | | |
2045 | 2045 | | |
2046 | 2046 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
920 | | - | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
921 | 924 | | |
922 | 925 | | |
923 | 926 | | |
| |||
0 commit comments