Skip to content

Commit

Permalink
cmd/go: use new vet location
Browse files Browse the repository at this point in the history
Change-Id: I7d96ebcca5954152edb821bb41b6047a1c622949
Reviewed-on: https://go-review.googlesource.com/10731
Reviewed-by: Andrew Gerrand <[email protected]>
Reviewed-by: Rob Pike <[email protected]>
  • Loading branch information
griesemer committed Jun 5, 2015
1 parent d64cdde commit a544a3a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/cmd/go/pkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,9 @@ var goTools = map[string]targetDir{
"cmd/pack": toTool,
"cmd/pprof": toTool,
"cmd/trace": toTool,
"cmd/vet": toTool,
"cmd/yacc": toTool,
"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/godoc": stalePath,
"code.google.com/p/go.tools/cmd/vet": stalePath,
Expand Down
4 changes: 0 additions & 4 deletions src/cmd/go/tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ func tool(toolName string) string {
}

func isInGoToolsRepo(toolName string) bool {
switch toolName {
case "vet":
return true
}
return false
}

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/go/vet.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var cmdVet = &Command{
Long: `
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'.
To run the vet tool with specific options, run 'go tool vet'.
Expand Down

0 comments on commit a544a3a

Please sign in to comment.