]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: remove 'go tool benchcmp' and corresponding special case
authorAndrew Gerrand <adg@golang.org>
Wed, 26 Feb 2014 02:04:39 +0000 (13:04 +1100)
committerAndrew Gerrand <adg@golang.org>
Wed, 26 Feb 2014 02:04:39 +0000 (13:04 +1100)
See the discussion on the original CL for context:
        https://golang.org/cl/60100043/

LGTM=josharian
R=r, josharian
CC=golang-codereviews
https://golang.org/cl/68890043

doc/go1.3.txt
src/cmd/go/pkg.go
src/cmd/go/tool.go

index c2f26c42a0b5ed126a4a7278a11eea6fc60642ba..bfcf769cf6d3e8d18155943d419144b1c5bfdfdb 100644 (file)
@@ -5,7 +5,7 @@ runtime: output how long goroutines are blocked (CL 50420043)
 syscall: add NewCallbackCDecl to use for windows callbacks (CL 36180044)
 testing: diagnose buggy tests that panic(nil) (CL 55780043)
 testing: add b.RunParallel function (CL 57270043)
-misc/benchcmp has been replaced by go tool benchcmp (CL 47980043)
+misc/benchcmp: removed and replaced by go.tools/cmd/benchcmp (CL 47980043)
 cmd/go, go/build: support .m files (CL 60590044)
 unicode: upgrade from Unicode 6.2.0 to 6.3.0 (CL 65400044)
 runtime/debug: add SetPanicOnFault (CL 66590044)
index 191d04c233062cd28c82617a669989a99037b869..0964008dd8713b1733bb4388afe0d364489b679b 100644 (file)
@@ -307,18 +307,17 @@ const (
 
 // goTools is a map of Go program import path to install target directory.
 var goTools = map[string]targetDir{
-       "cmd/addr2line": toTool,
-       "cmd/api":       toTool,
-       "cmd/cgo":       toTool,
-       "cmd/fix":       toTool,
-       "cmd/link":      toTool,
-       "cmd/nm":        toTool,
-       "cmd/pack":      toTool,
-       "cmd/yacc":      toTool,
-       "code.google.com/p/go.tools/cmd/benchcmp": toTool,
-       "code.google.com/p/go.tools/cmd/cover":    toTool,
-       "code.google.com/p/go.tools/cmd/godoc":    toBin,
-       "code.google.com/p/go.tools/cmd/vet":      toTool,
+       "cmd/addr2line":                        toTool,
+       "cmd/api":                              toTool,
+       "cmd/cgo":                              toTool,
+       "cmd/fix":                              toTool,
+       "cmd/link":                             toTool,
+       "cmd/nm":                               toTool,
+       "cmd/pack":                             toTool,
+       "cmd/yacc":                             toTool,
+       "code.google.com/p/go.tools/cmd/cover": toTool,
+       "code.google.com/p/go.tools/cmd/godoc": toBin,
+       "code.google.com/p/go.tools/cmd/vet":   toTool,
 }
 
 // expandScanner expands a scanner.List error into all the errors in the list.
index 943a33ea89d4c2ef7a0b9149ce7bb3ecbeaf5beb..6d26f7a4b4ada01e83c84ce2c2b7ca1719b5cb12 100644 (file)
@@ -65,7 +65,7 @@ func tool(toolName string) string {
 
 func isInGoToolsRepo(toolName string) bool {
        switch toolName {
-       case "benchcmp", "cover", "vet":
+       case "cover", "vet":
                return true
        }
        return false