Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/vet: "possible malformed +build comment" check too strict #30252
What version of Go are you using (
I was going to say it seems rather too specific, but in fact the only comments vet looks at are those above the package declaration, excluding the package doc comment itself, which leaves only true +build declarations, copyright messages, and //go declarations. So I guess that would be fine.
But it wouldn't be hard to exclude any comments of the form