summaryrefslogtreecommitdiff
path: root/src/run.bat
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2012-03-21 00:47:27 +0800
committerShenghou Ma <minux.ma@gmail.com>2012-03-21 00:47:27 +0800
commiteb86730a7e7b68bb8befeae99c0b44983b22c23b (patch)
tree9b81b470c57b5ecfe027ce4a7512e93f735cf561 /src/run.bat
parent7aeb1d0428aab408fc650cdb8547d189fab602ce (diff)
downloadgo-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.bat4
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