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
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.
Appease the vet builder until we figure out the ideal solution. Updates #21716. Change-Id: I64ecdf9b6efb0933c5c79e11c860966ff1980305 Reviewed-on: https://go-review.googlesource.com/60776 Run-TryBot: Matthew Dempsky <firstname.lastname@example.org> Reviewed-by: Keith Randall <email@example.com> TryBot-Result: Gobot Gobot <firstname.lastname@example.org>