Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: errors appear multiple times #26100
Related to but distinct from #24278
If there is a syntax or type error in a test, running
The go command should sequester errors from vet until the other process completes, and drop them on the floor if the main process generates an error. Or to put it another way, errors from vet should appear only if compilation of the test is otherwise successful.
#26102 is unrelated, I'm afraid. That one is simply a vet bug.
The reason this issue is different from #24278 is explained by a comment of mine there:
That also explains why, in this case, errors appear multiple times.
If the error is a type-check error, this is probably a regression in 1.11. @robpike do you have a working example we can test with?