When set NoDefaultCurrentDirectoryInExePath=1, call some.bat does not work.
Change-Id: Ifeab27ecf0d7ba1d504b755a22f73a0f13abbbb3
Reviewed-on: https://go-review.googlesource.com/c/go/+/405874
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
:ok\r
\r
set OLDPATH=%PATH%\r
-call make.bat --no-banner --no-local\r
+call .\make.bat --no-banner --no-local\r
if %GOBUILDFAIL%==1 goto end\r
-call run.bat --no-rebuild --no-local\r
+call .\run.bat --no-rebuild --no-local\r
if %GOBUILDFAIL%==1 goto end\r
:: we must restore %PATH% before running "dist banner" so that the latter\r
:: can get the original %PATH% and give suggestion to add %GOROOT%/bin\r
\r
go tool dist env -w -p >env.bat\r
if errorlevel 1 goto fail\r
-call env.bat\r
+call .\env.bat\r
del env.bat\r
echo.\r
\r
:ok\r
\r
set GOROOT=%CD%\..\r
-call make.bat --dist-tool >NUL\r
+call .\make.bat --dist-tool >NUL\r
if errorlevel 1 goto fail\r
.\cmd\dist\dist.exe env -w -p >env.bat\r
if errorlevel 1 goto fail\r
-call env.bat\r
+call .\env.bat\r
del env.bat\r
\r
if %GOHOSTARCH% == amd64 goto continue\r
goto fail\r
\r
:continue\r
-call make.bat --no-banner --no-local\r
+call .\make.bat --no-banner --no-local\r
if %GOBUILDFAIL%==1 goto end\r
echo # go install -race std\r
go install -race std\r
\r
..\bin\go tool dist env > env.bat\r
if errorlevel 1 goto fail\r
-call env.bat\r
+call .\env.bat\r
del env.bat\r
\r
set GOPATH=c:\nonexist-gopath\r