Repository navigation
Commit f1577c1
committed
Fix VEX to check go.work replaces for workspace selection
The VEX gate only walked go.mod replaces from module_roots and never
inspected go.work pins. Discovery still emits a hosted go.work replace
when selection is Unknown (a zip line still satisfies lockfile basis),
so VEX incorrectly attested that pin on a fresh clone or unread module
graph instead of withholding go_version_not_selected.
The fix loads the workspace and adds its replaces to the entries list,
applying the same selection gate logic. Now a go.work-only pin is
correctly withheld when the module graph is unavailable.
Updated tests to expect the corrected behavior: go.work replaces in a
workspace without a cached module graph are now withheld like go.mod
replaces.1 parent 964cd36 commit f1577c1
2 files changed
Lines changed: 21 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
998 | 998 | | |
999 | 999 | | |
1000 | 1000 | | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
1001 | 1011 | | |
1002 | 1012 | | |
1003 | 1013 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
553 | | - | |
| 553 | + | |
| 554 | + | |
554 | 555 | | |
555 | 556 | | |
556 | 557 | | |
557 | 558 | | |
558 | 559 | | |
559 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
560 | 564 | | |
561 | 565 | | |
562 | 566 | | |
| |||
1046 | 1050 | | |
1047 | 1051 | | |
1048 | 1052 | | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
| 1053 | + | |
| 1054 | + | |
1052 | 1055 | | |
1053 | 1056 | | |
1054 | 1057 | | |
| |||
1058 | 1061 | | |
1059 | 1062 | | |
1060 | 1063 | | |
1061 | | - | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
1062 | 1068 | | |
1063 | 1069 | | |
1064 | 1070 | | |
| |||
0 commit comments