From: Elias Naur Date: Wed, 27 Feb 2019 17:53:14 +0000 (+0100) Subject: cmd/dist: fix variable name X-Git-Tag: go1.13beta1~1330 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c33a9511e7ba79177c256e1ff9d7c952ab80104f;p=gostls13.git cmd/dist: fix variable name Noticed by Bryan after CL 163618 went in. Change-Id: Ia33c80dca60321f6a8329097ff55118e5d2634ab Reviewed-on: https://go-review.googlesource.com/c/164042 Run-TryBot: Elias Naur Reviewed-by: Brad Fitzpatrick Reviewed-by: Bryan C. Mills TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go index 43e1fe66f3..03f0f03657 100644 --- a/src/cmd/dist/build.go +++ b/src/cmd/dist/build.go @@ -1405,17 +1405,17 @@ func goInstall(goBinary string, args ...string) { } func goCmd(goBinary string, cmd string, args ...string) { - installCmd := []string{goBinary, cmd, "-gcflags=all=" + gogcflags, "-ldflags=all=" + goldflags} + goCmd := []string{goBinary, cmd, "-gcflags=all=" + gogcflags, "-ldflags=all=" + goldflags} if vflag > 0 { - installCmd = append(installCmd, "-v") + goCmd = append(goCmd, "-v") } // Force only one process at a time on vx32 emulation. if gohostos == "plan9" && os.Getenv("sysname") == "vx32" { - installCmd = append(installCmd, "-p=1") + goCmd = append(goCmd, "-p=1") } - run(goroot, ShowOutput|CheckExit, append(installCmd, args...)...) + run(goroot, ShowOutput|CheckExit, append(goCmd, args...)...) } func checkNotStale(goBinary string, targets ...string) {