]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix vet
authorFrancisco Souza <franciscossouza@gmail.com>
Mon, 25 Feb 2013 18:43:04 +0000 (10:43 -0800)
committerRob Pike <r@golang.org>
Mon, 25 Feb 2013 18:43:04 +0000 (10:43 -0800)
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

index e197719f59795e0746c746b8b9b2ff6d9fee9400..eb0b89ccadf8ba8892b91e8cc2b39fc42ba38d8b 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(pkg.allgofiles))
+               run(tool("vet"), relPaths(pkg.gofiles))
        }
 }