aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-03-12 12:39:31 -0400
committerRuss Cox <rsc@golang.org>2012-03-12 12:39:31 -0400
commit376fc748f6dfbe7ad12fc97d0bf8b2385c9314d7 (patch)
treed96814e1a21e321449b18aafb1686d677db147b5
parentd75abb7ca323ad8911b900cb4955e533e35f4559 (diff)
downloadgo-376fc748f6dfbe7ad12fc97d0bf8b2385c9314d7.tar.gz
go-376fc748f6dfbe7ad12fc97d0bf8b2385c9314d7.zip
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
-rw-r--r--src/cmd/go/build.go2
1 files changed, 0 insertions, 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
}