From f5afc7d44f5ef20316c9d1d7ec28b45117f3add3 Mon Sep 17 00:00:00 2001 From: Francisco Souza Date: Mon, 25 Feb 2013 10:43:04 -0800 Subject: [PATCH] cmd/go: fix vet Now that vet does typechecking, it should use only pkg.gofiles, instead of pkg.allgofiles. Ignored files should not be checked by vet, because they wouldn't typecheck. Fixes #4906. R=rsc, r CC=golang-dev https://golang.org/cl/7401051 --- 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 e197719f59..eb0b89ccad 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(pkg.allgofiles)) + run(tool("vet"), relPaths(pkg.gofiles)) } }