You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any repository with a go.work file falls back today:
Go support requires one root go.mod; workspaces and nested modules require full validation
The adapter runs go list with GOWORK=off, and the test command does the same.
Proposal
When go.work exists and every use directory is inside the repository, run go list -deps -test -json for each workspace module (or once with GOWORK on, if offline listing stays reliable) and merge the packages into one graph. Cross-module imports between workspace modules become normal package edges.
Map each test file to its module and package, and run go test from the right module directory, with one command group per module if needed.
Must fall back (blocker)
A use directory outside the repository, a replace in go.work pointing outside it, or go list failing for any module.
Changes to go.work or go.work.sum (already a full run through the configuration-change rule).
Done when
A fixture with go.work and two modules, where b imports a, shows that a change in a selects tests in both modules and a change in b selects only b.
Activity