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
Go custom build flags or incomplete build context require full validation
Files behind a tag that isn't active also fall back (Go files outside the active build context require full validation: …). Repositories with //go:build integration test files hit this constantly.
Proposal
Accept GOFLAGS when it contains only -tags=... (and maybe -mod=readonly). Pass the same flags to go list and put them in executionEnv, so the go test command uses the build context that was analysed.
Let diffci.json declare extra tag sets (for example "go": { "tags": [[], ["integration"]] }). Run go list once per set, merge the packages, and emit one command group per set.
Must fall back (blocker)
Any other GOFLAGS entry (-ldflags, -gcflags, -overlay, ...).
A .go file that none of the analysed tag sets or platforms includes.
Done when
A fixture with foo_integration_test.go behind //go:build integration shows that, with the tag declared, a change to foo.go selects the package under both tag sets, and without the declaration it still falls back.
Activity