From 376fc748f6dfbe7ad12fc97d0bf8b2385c9314d7 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 12 Mar 2012 12:39:31 -0400 Subject: [PATCH] cmd/go: stop using $GOROOT and $GOBIN in script output They were necessary to produce a canonical script when we checked in build scripts, but now they're just getting in the way. Fixes #3279. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5796068 --- src/cmd/go/build.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cmd/go/build.go b/src/cmd/go/build.go index 24c2a05d22..e62de32e16 100644 --- a/src/cmd/go/build.go +++ b/src/cmd/go/build.go @@ -929,8 +929,6 @@ func (b *builder) fmtcmd(dir string, format string, args ...interface{}) string if b.work != "" { cmd = strings.Replace(cmd, b.work, "$WORK", -1) } - cmd = strings.Replace(cmd, gobin, "$GOBIN", -1) - cmd = strings.Replace(cmd, goroot, "$GOROOT", -1) return cmd }