Repository navigation
Commit ec87efa
committed
Keep inert Go member replaces as refs; recognize stale sums
Second review round on Go workspace discovery.
- A Socket replace of a module that is itself a `use` member (every
replace of it is inert, and the writers refuse it with
`WorkspaceConflict::MainModule`, which a re-run never clears) was
dropped with a diagnostic, so rollback, remove and list lost wiring
still in the file. It stays a ref, marked `GoWorkspaceOverride`
with the same "is inert" detail (owner decision 4).
- go.sum / member sums / go.work.sum were read only when a hosted ref
existed, so a sum left by a reverted patch was no longer recognized
and a dead ledger claim could be re-derived from its raw text
(rule 11). They are recognized either way.
- The plan both attested a purl (the live go.work patch) and reported
it skipped for a lockfile-only candidate whose only ref is a stale,
bypassed leftover pin of another patch. That candidate is now dropped
with a note when another candidate attests the purl.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 1529210 commit ec87efa
2 files changed
Lines changed: 72 additions & 36 deletions
File tree
- crates
- socket-patch-cli/src/commands
- socket-patch-core/src/vex/discover
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
438 | 447 | | |
439 | 448 | | |
440 | 449 | | |
| |||
452 | 461 | | |
453 | 462 | | |
454 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
455 | 475 | | |
456 | 476 | | |
457 | 477 | | |
| |||
1897 | 1917 | | |
1898 | 1918 | | |
1899 | 1919 | | |
| 1920 | + | |
| 1921 | + | |
1900 | 1922 | | |
1901 | | - | |
| 1923 | + | |
1902 | 1924 | | |
1903 | 1925 | | |
1904 | 1926 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
370 | 381 | | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | 382 | | |
376 | 383 | | |
377 | 384 | | |
| |||
725 | 732 | | |
726 | 733 | | |
727 | 734 | | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
734 | 741 | | |
735 | 742 | | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
746 | 748 | | |
747 | 749 | | |
748 | 750 | | |
| |||
794 | 796 | | |
795 | 797 | | |
796 | 798 | | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
| 799 | + | |
801 | 800 | | |
802 | 801 | | |
803 | 802 | | |
| |||
887 | 886 | | |
888 | 887 | | |
889 | 888 | | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
| 889 | + | |
894 | 890 | | |
895 | 891 | | |
896 | 892 | | |
| |||
1945 | 1941 | | |
1946 | 1942 | | |
1947 | 1943 | | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
1948 | 1958 | | |
1949 | 1959 | | |
1950 | 1960 | | |
| |||
2746 | 2756 | | |
2747 | 2757 | | |
2748 | 2758 | | |
| 2759 | + | |
| 2760 | + | |
| 2761 | + | |
2749 | 2762 | | |
2750 | | - | |
2751 | | - | |
| 2763 | + | |
| 2764 | + | |
| 2765 | + | |
| 2766 | + | |
| 2767 | + | |
2752 | 2768 | | |
2753 | | - | |
2754 | | - | |
2755 | | - | |
2756 | | - | |
2757 | | - | |
| 2769 | + | |
| 2770 | + | |
| 2771 | + | |
2758 | 2772 | | |
2759 | 2773 | | |
2760 | 2774 | | |
| |||
0 commit comments