From c33a9511e7ba79177c256e1ff9d7c952ab80104f Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Wed, 27 Feb 2019 18:53:14 +0100 Subject: [PATCH] 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 --- src/cmd/dist/build.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) { -- 2.50.0