cmd/go: use new vet location

Change-Id: I7d96ebcca5954152edb821bb41b6047a1c622949
Reviewed-on: https://go-review.googlesource.com/10731
Reviewed-by: Andrew Gerrand <adg@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
Robert Griesemer 2015-06-04 16:09:15 -07:00
parent d64cdde357
commit a544a3a6f7
3 changed files with 2 additions and 6 deletions

View File

@ -411,9 +411,9 @@ var goTools = map[string]targetDir{
"cmd/pack": toTool, "cmd/pack": toTool,
"cmd/pprof": toTool, "cmd/pprof": toTool,
"cmd/trace": toTool, "cmd/trace": toTool,
"cmd/vet": toTool,
"cmd/yacc": toTool, "cmd/yacc": toTool,
"golang.org/x/tools/cmd/godoc": toBin, "golang.org/x/tools/cmd/godoc": toBin,
"golang.org/x/tools/cmd/vet": toTool,
"code.google.com/p/go.tools/cmd/cover": stalePath, "code.google.com/p/go.tools/cmd/cover": stalePath,
"code.google.com/p/go.tools/cmd/godoc": stalePath, "code.google.com/p/go.tools/cmd/godoc": stalePath,
"code.google.com/p/go.tools/cmd/vet": stalePath, "code.google.com/p/go.tools/cmd/vet": stalePath,

View File

@ -67,10 +67,6 @@ func tool(toolName string) string {
} }
func isInGoToolsRepo(toolName string) bool { func isInGoToolsRepo(toolName string) bool {
switch toolName {
case "vet":
return true
}
return false return false
} }

View File

@ -17,7 +17,7 @@ var cmdVet = &Command{
Long: ` Long: `
Vet runs the Go vet command on the packages named by the import paths. Vet runs the Go vet command on the packages named by the import paths.
For more about vet, see 'godoc golang.org/x/tools/cmd/vet'. For more about vet, see 'go doc cmd/vet'.
For more about specifying packages, see 'go help packages'. For more about specifying packages, see 'go help packages'.
To run the vet tool with specific options, run 'go tool vet'. To run the vet tool with specific options, run 'go tool vet'.