mirror of
https://github.com/golang/go
synced 2024-11-13 18:00:30 -07:00
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
This commit is contained in:
parent
d75abb7ca3
commit
376fc748f6
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user