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/vet: should not warn +build in raw string literal #21716
After CL 60531 (https://go-review.googlesource.com/c/go/+/60531), the misc builder fails with
The relevant line is https://go-review.googlesource.com/c/go/+/60531/2/src/go/types/hilbert_test.go#55
I think this is intentional (ie. WAI), because some go tools are known to not parse the source when looking for [certain?] magic comments.
The solution is to, for example
or to use any other way of hiding the directive in it's plain form and starting at BOL.