diff --git a/src/cmd/go/tool.go b/src/cmd/go/tool.go index 937ca1f306c..9ff0dcfb129 100644 --- a/src/cmd/go/tool.go +++ b/src/cmd/go/tool.go @@ -98,6 +98,7 @@ func runTool(cmd *Command, args []string) { fmt.Printf("%s\n", cmd) return } + args[0] = toolPath // in case the tool wants to re-exec itself, e.g. cmd/dist toolCmd := &exec.Cmd{ Path: toolPath, Args: args,