]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: stop using $GOROOT and $GOBIN in script output
authorRuss Cox <rsc@golang.org>
Mon, 12 Mar 2012 16:39:31 +0000 (12:39 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 12 Mar 2012 16:39:31 +0000 (12:39 -0400)
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

index 24c2a05d226ed4c6ad2ede7ef12f0811842a79ef..e62de32e160c87cc835f57bb03ca26ed4fba1637 100644 (file)
@@ -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
 }