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:
parent
f5dce6c853
commit
f5afc7d44f
@ -32,6 +32,6 @@ func runVet(cmd *Command, args []string) {
|
|||||||
// Use pkg.gofiles instead of pkg.Dir so that
|
// Use pkg.gofiles instead of pkg.Dir so that
|
||||||
// the command only applies to this package,
|
// the command only applies to this package,
|
||||||
// not to packages in subdirectories.
|
// not to packages in subdirectories.
|
||||||
run(tool("vet"), relPaths(pkg.allgofiles))
|
run(tool("vet"), relPaths(pkg.gofiles))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user