]> Cypherpunks repositories - gostls13.git/commit
cmd/go: update BuildContext.GOROOT and build.Tooldir with computed GOROOT
authorIan Lance Taylor <iant@golang.org>
Fri, 14 Jul 2017 15:22:30 +0000 (08:22 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 14 Jul 2017 20:07:08 +0000 (20:07 +0000)
commit7914369e64190ce22e6fd6bba685e3f82338875a
tree8a4b62c57db4a79d2bc07b6faa5180396633b079
parent4dbcacda961abb0ca3490dc06923fa7ab344d702
cmd/go: update BuildContext.GOROOT and build.Tooldir with computed GOROOT

This is necessary to make a relocated GOROOT work correctly.

Fixes #20997

Change-Id: I18624bd2e109721066cd9e4a887a12583ab79f5d
Reviewed-on: https://go-review.googlesource.com/48550
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/dist/test.go
src/cmd/go/internal/cfg/cfg.go
src/cmd/go/internal/work/build.go