]> Cypherpunks repositories - gostls13.git/commit
cmd/go: set $GOROOT during 'go tool' invocations
authorRuss Cox <rsc@golang.org>
Sat, 17 Jan 2015 03:15:01 +0000 (22:15 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 19 Jan 2015 02:19:01 +0000 (02:19 +0000)
commite832043e7293cf3237e35ffc3b645c8d04d11f77
treeb6b4bb8efe4c81255ab30397fd98ec4e18247a5e
parentdca54d7cdda3b88f5136c0ceee3eff99594e0643
cmd/go: set $GOROOT during 'go tool' invocations

cmd/dist now requires $GOROOT to be set explicitly.
Set it when invoking via 'go tool dist' so that users are unaffected.

Also, change go tool -n to drop trailing space in output
for 'go tool -n <anything>'.

Change-Id: I9b2c020e0a2f3fa7c9c339fadcc22cc5b6cb7cac
Reviewed-on: https://go-review.googlesource.com/3011
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/tool.go