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
The error is being reported by go vet. Running go test automatically runs go vet. Running go build does not. This is working as documented and expected, so closing. Thanks for reporting it.
Go version
go version go1.21.9 darwin/amd64
Output of
go env
in your module/workspace:What did you do?
i write a build tag for my code, like below:
a.go
// note: i write wrong format for
// +build
a_a.go
a_test.go
go build ./...
build successgo test ./...
test failedWhat did you see happen?
I write the wrong format build tag for

a.go
. It will compile successfully bygo build ./...
, but it will fail bygo test ./...
What did you expect to see?
I think
go test
&go build
both to report the wrong format for my code.The text was updated successfully, but these errors were encountered: