Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: support GOFLAGS=-race everywhere #35324
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).
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.