]> Cypherpunks.ru repositories - gostls13.git/commit
run.bash: set GOPATH to $GOROOT/nil before running tests
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 22 Feb 2017 14:56:26 +0000 (06:56 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 24 Feb 2017 18:18:30 +0000 (18:18 +0000)
commit2a0d7e24aad70e01a5a301b7e5248fc9adfb0e26
tree54d616406b1f258a607da0eb8723e6cddaadf0ed
parent1564817d8c941344caa14d14fac55f7e7b46055e
run.bash: set GOPATH to $GOROOT/nil before running tests

Set $GOPATH to a semantically valid, non-empty string that cannot
conflict with $GOROOT to avoid false test failures that occur when
$GOROOT resides under $GOPATH.  Unsetting GOPATH is no longer viable
as Go now defines a default $GOPATH that may conflict with $GOROOT.

Fixes #19237

Change-Id: I376a2ad3b18e9c4098211b988dde7e76bc4725d2
Reviewed-on: https://go-review.googlesource.com/37396
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/run.bash