summaryrefslogtreecommitdiff
path: root/src/run.bat
diff options
context:
space:
mode:
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