1
0
mirror of https://github.com/golang/go synced 2024-11-26 17:56:55 -07:00

all.bat,clean.bat,race.bat,run.bat: call some.bat with .\some.bat

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>
This commit is contained in:
Yasuhiro Matsumoto 2022-05-13 00:22:11 +09:00 committed by Gopher Robot
parent 917f201f95
commit c4c9c80e4f
4 changed files with 7 additions and 7 deletions

View File

@ -13,9 +13,9 @@ goto end
:ok
set OLDPATH=%PATH%
call make.bat --no-banner --no-local
call .\make.bat --no-banner --no-local
if %GOBUILDFAIL%==1 goto end
call run.bat --no-rebuild --no-local
call .\run.bat --no-rebuild --no-local
if %GOBUILDFAIL%==1 goto end
:: we must restore %PATH% before running "dist banner" so that the latter
:: can get the original %PATH% and give suggestion to add %GOROOT%/bin

View File

@ -10,7 +10,7 @@ set GOBUILDFAIL=0
go tool dist env -w -p >env.bat
if errorlevel 1 goto fail
call env.bat
call .\env.bat
del env.bat
echo.

View File

@ -16,11 +16,11 @@ goto end
:ok
set GOROOT=%CD%\..
call make.bat --dist-tool >NUL
call .\make.bat --dist-tool >NUL
if errorlevel 1 goto fail
.\cmd\dist\dist.exe env -w -p >env.bat
if errorlevel 1 goto fail
call env.bat
call .\env.bat
del env.bat
if %GOHOSTARCH% == amd64 goto continue
@ -28,7 +28,7 @@ echo Race detector is only supported on windows/amd64.
goto fail
:continue
call make.bat --no-banner --no-local
call .\make.bat --no-banner --no-local
if %GOBUILDFAIL%==1 goto end
echo # go install -race std
go install -race std

View File

@ -20,7 +20,7 @@ set GOBUILDFAIL=0
..\bin\go tool dist env > env.bat
if errorlevel 1 goto fail
call env.bat
call .\env.bat
del env.bat
set GOPATH=c:\nonexist-gopath