]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: include -errorsas in go test vet checks
authorJonathan Amsterdam <jba@google.com>
Sat, 1 Jun 2019 21:43:09 +0000 (17:43 -0400)
committerJonathan Amsterdam <jba@google.com>
Wed, 12 Jun 2019 13:56:48 +0000 (13:56 +0000)
Make "go test" run the new errorsas vet check by default.

Fixes #31213.

Change-Id: I5c93c000874ffe1c0b6d647bf10de803f414c5c1
Reviewed-on: https://go-review.googlesource.com/c/go/+/179977
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/test/test.go

index 8440a839515035984503115f7e8104fa6a349082..eed2d437c99efd15b0396ce17151dcf920d6e097 100644 (file)
@@ -507,6 +507,7 @@ var testVetFlags = []string{
        // "-cgocall",
        // "-composites",
        // "-copylocks",
+       "-errorsas",
        // "-httpresponse",
        // "-lostcancel",
        // "-methods",