-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
runtime: support GOFLAGS=-race everywhere #35324
Comments
But this way the user would be misled into thinking they are testing with the race detector activated, when they're not. |
Perhaps we could show a warning instead of an error? There's a precedent for non-fatal warning messages in the go tool. |
Thinking outloud some more - what we want is a best-effort |
IMO there is a fundamental difference between
Consider the following (which currently errors):
Which one do we ignore? We build with It seems to me that this could get confusing quickly, from a UX point of view. |
You raise a good point. Treating |
For what it's worth, we made it so that the test that builds with |
I'd like to set GOFLAGS=-race on a CI builder. However, some tests invoke the go tool to build for GOOS=js where -race is not supported, leading to this error:
I believe unsupported flags should be ignored (unlike unknown flags).
The text was updated successfully, but these errors were encountered: