From: Russ Cox Date: Thu, 14 Feb 2013 20:00:51 +0000 (-0500) Subject: cmd/go: fix vet X-Git-Tag: go1.1rc2~1025 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=11884db3d76a7e91521bb63cff3cc701c0c07826;p=gostls13.git cmd/go: fix vet The IgnoredGoFiles are already listed in allgofiles, so they were being run twice. Worse, the ones in IgnoredGoFiles are not fully qualified paths, so they weren't being found when executed outside the package directory. Fixes #4764. R=golang-dev, minux.ma, franciscossouza CC=golang-dev https://golang.org/cl/7308049 --- diff --git a/src/cmd/go/vet.go b/src/cmd/go/vet.go index 40e2726186..e197719f59 100644 --- a/src/cmd/go/vet.go +++ b/src/cmd/go/vet.go @@ -32,6 +32,6 @@ func runVet(cmd *Command, args []string) { // Use pkg.gofiles instead of pkg.Dir so that // the command only applies to this package, // not to packages in subdirectories. - run(tool("vet"), relPaths(stringList(pkg.allgofiles, pkg.IgnoredGoFiles))) + run(tool("vet"), relPaths(pkg.allgofiles)) } }