]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix vet
authorRuss Cox <rsc@golang.org>
Thu, 14 Feb 2013 20:00:51 +0000 (15:00 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 14 Feb 2013 20:00:51 +0000 (15:00 -0500)
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

src/cmd/go/vet.go

index 40e27261863ac686113ea9cc43e0204e9a8907d6..e197719f59795e0746c746b8b9b2ff6d9fee9400 100644 (file)
@@ -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))
        }
 }