mirror of
https://github.com/golang/go
synced 2024-11-23 05:10:09 -07:00
make.bat: fix toolchain version setter
Single quotes don't account for whitespace in this context, which causes output to look like this: 'C:\Program' is not recognized as an internal or external command, operable program or batch file. Building Go cmd/dist using C:\Program Files\Go. (go version =) When it should look like this: Building Go cmd/dist using C:\Program Files\Go. (go1.19 windows/amd64)
This commit is contained in:
parent
91d5ce3def
commit
a01fda6b52
@ -93,7 +93,7 @@ setlocal
|
||||
set GOOS=
|
||||
set GOARCH=
|
||||
set GOEXPERIMENT=
|
||||
for /f "tokens=*" %%g IN ('%GOROOT_BOOTSTRAP%\bin\go version') do (set GOROOT_BOOTSTRAP_VERSION=%%g)
|
||||
for /f "tokens=*" %%g IN ('"%GOROOT_BOOTSTRAP%\bin\go" version') do (set GOROOT_BOOTSTRAP_VERSION=%%g)
|
||||
set GOROOT_BOOTSTRAP_VERSION=%GOROOT_BOOTSTRAP_VERSION:go version =%
|
||||
echo Building Go cmd/dist using %GOROOT_BOOTSTRAP%. (%GOROOT_BOOTSTRAP_VERSION%)
|
||||
if x%vflag==x-v echo cmd/dist
|
||||
|
Loading…
Reference in New Issue
Block a user