mirror of https://github.com/golang/go.git
build: unset GOPATH before tests
This is because we disallow local import for non-local packages, if GOROOT happens to be under one of GOPATH, then some tests will fail to build. Fixes #3337. R=golang-dev, r CC=golang-dev https://golang.org/cl/5852043
This commit is contained in:
parent
9dbfda5857
commit
23322ab841
|
|
@ -8,6 +8,8 @@ set -e
|
||||||
eval $(go env)
|
eval $(go env)
|
||||||
|
|
||||||
unset CDPATH # in case user has it set
|
unset CDPATH # in case user has it set
|
||||||
|
unset GOPATH # we disallow local import for non-local packages, if $GOROOT happens
|
||||||
|
# to be under $GOPATH, then some tests below will fail
|
||||||
|
|
||||||
# no core files, please
|
# no core files, please
|
||||||
ulimit -c 0
|
ulimit -c 0
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,10 @@ setlocal
|
||||||
|
|
||||||
set GOBUILDFAIL=0
|
set GOBUILDFAIL=0
|
||||||
|
|
||||||
|
:: we disallow local import for non-local packages, if %GOROOT% happens
|
||||||
|
:: to be under %GOPATH%, then some tests below will fail
|
||||||
|
set GOPATH=
|
||||||
|
|
||||||
rem TODO avoid rebuild if possible
|
rem TODO avoid rebuild if possible
|
||||||
|
|
||||||
if x%1==x--no-rebuild goto norebuild
|
if x%1==x--no-rebuild goto norebuild
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue