You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ go get -u -d github.com/bazelbuild/bazel-gazelle
$ go test github.com/bazelbuild/bazel-gazelle/internal/packages
What did you expect to see?
No vet failures with the message +build comment must appear before package clause and be followed by a blank line.
Gazelle extracts some build metadata from source files. That includes build tags. There are some unit tests with raw literal strings that include build tags, and vet is reporting errors for these.
vet should ignore strings for the purposes of this check and should only report errors on comments.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Go 1.10
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
No vet failures with the message
+build comment must appear before package clause and be followed by a blank line
.What did you see instead?
Several failures with that message. In particular, see fileinfo_go_test.go:121.
Gazelle extracts some build metadata from source files. That includes build tags. There are some unit tests with raw literal strings that include build tags, and vet is reporting errors for these.
vet should ignore strings for the purposes of this check and should only report errors on comments.
The text was updated successfully, but these errors were encountered: