diff options
author | Shenghou Ma <minux.ma@gmail.com> | 2012-03-21 00:47:27 +0800 |
---|---|---|
committer | Shenghou Ma <minux.ma@gmail.com> | 2012-03-21 00:47:27 +0800 |
commit | eb86730a7e7b68bb8befeae99c0b44983b22c23b (patch) | |
tree | 9b81b470c57b5ecfe027ce4a7512e93f735cf561 /src/run.bat | |
parent | 7aeb1d0428aab408fc650cdb8547d189fab602ce (diff) | |
download | go-eb86730a7e7b68bb8befeae99c0b44983b22c23b.tar.gz |
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 issue 3337.
R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/5852043
Diffstat (limited to 'src/run.bat')
-rw-r--r-- | src/run.bat | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/run.bat b/src/run.bat index 1d5bf60f2..c7a157972 100644 --- a/src/run.bat +++ b/src/run.bat @@ -12,6 +12,10 @@ setlocal 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 if x%1==x--no-rebuild goto norebuild |