Description
The go test
command normally runs a select subset of vet checks, and fails the test if any of them fail.
In the main Go repo, to aid development, that behavior is forcibly modified to have all vet checks be treated as strict and included in go test
:
// In GOROOT, we enable all the vet tests during 'go test',
// not just the high-confidence subset. This gets us extra
// checking for the standard library (at some compliance cost)
// and helps us gain experience about how well the checks
// work, to help decide which should be turned on by default.
This causes some unnecessary friction when it comes to golang.org/x packages that are vendored into the main Go repo. For example, a self-assignment finding that was introduced in CL 663756 (but not reported because that was in x/arch) started being reported a week or two later (in CL 678556 and CL 677257).
We can avoid this friction by either extending this behavior to apply to all golang.org/x packages that are vendored (or all golang.org/x repos?), or by having it not apply to vendored packages at all.
CC @golang/release, @golang/command-line, @adonovan.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status