summaryrefslogtreecommitdiff
path: root/src/mongo/gotools/set_gopath.bat
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/gotools/set_gopath.bat')
-rwxr-xr-xsrc/mongo/gotools/set_gopath.bat6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/gotools/set_gopath.bat b/src/mongo/gotools/set_gopath.bat
new file mode 100755
index 00000000000..61d40b44753
--- /dev/null
+++ b/src/mongo/gotools/set_gopath.bat
@@ -0,0 +1,6 @@
+@echo off
+
+if exist "%cd%\.gopath\" rd /s /q "%cd%\.gopath\"
+md "%cd%\.gopath\src\github.com\mongodb\"
+mklink /J "%cd%\.gopath\src\github.com\mongodb\mongo-tools" "%cd%" >nul 2>&1
+set GOPATH=%cd%\.gopath;%cd%\vendor