From 11884db3d76a7e91521bb63cff3cc701c0c07826 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 14 Feb 2013 15:00:51 -0500 Subject: [PATCH] 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 --- src/cmd/go/vet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) } } -- 2.48.1