1
0
mirror of https://github.com/golang/go synced 2024-11-13 18:40:22 -07:00

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
This commit is contained in:
Francisco Souza 2013-02-25 10:43:04 -08:00 committed by Rob Pike
parent f5dce6c853
commit f5afc7d44f

View 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))
}
}