New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: errors appear multiple times #26100
Comments
Same root cause as #26102? |
Looks like #26102 is related but separate. |
Is this behavior present in 1.10, or is this a regression in 1.11? |
#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? |
@bcmills: I observed this the other day in my own work. It's a regression since Go 1.10. |
Duplicate of #26125 |
Related to but distinct from #24278
If there is a syntax or type error in a test, running
go test
causes each error to be reported multiple times, once by vet and once by either go test's internals or the compiler, depending on the particular error.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.
The text was updated successfully, but these errors were encountered: