cmd/go: building a test binary with "go test -c" probably shouldn't run vet #32134
Labels
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
While working on some slow full emulation qemu VMs, I noticed
go test -c
was much slower than expected. Looking at top, I sawvet
eating CPU.It seems surprising that we default to running vet on a flag that's described as:
Any vet output would look like a test failed and thus ran, even if it's not technically a test.
I vote we turn it off for
-c
. @bcmills, @jayconrod, @ianlancetaylor, @rsc?In any case, it's not critical. Now I know to always use
-vet=off
with-c
:Marking for Go 1.14, unless this is a recent regression. I didn't check.
The text was updated successfully, but these errors were encountered: