-
Notifications
You must be signed in to change notification settings - Fork 18.1k
make.bat: fix compare between GOROOT and srcdir paths, when either contains whitespace. #41319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This PR (HEAD: d2cd699) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/253898 to see it. Tip: You can toggle comments from me using the |
Message from Gobot Gobot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/253898. |
This PR (HEAD: 732243e) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/253898 to see it. Tip: You can toggle comments from me using the |
Message from Dominic Della Valle: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/253898. |
Message from Alex Brainman: Patch Set 2: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/253898. |
This PR (HEAD: 00d865b) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/253898 to see it. Tip: You can toggle comments from me using the |
Message from Giovanni Bajo: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/253898. |
Message from Dominic Della Valle: Patch Set 3: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/253898. |
Message from Alex Brainman: Patch Set 3: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/253898. |
Message from Giovanni Bajo: Patch Set 3: Run-TryBot+1 Code-Review+1 Trust+1 (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/253898. |
Message from Gobot Gobot: Patch Set 3: TryBots beginning. Status page: https://farmer.golang.org/try?commit=50198e7e Please don’t reply on this GitHub thread. Visit golang.org/cl/253898. |
Message from Gobot Gobot: Patch Set 3: Build is still in progress... Other builds still in progress; subsequent failure notices suppressed until final report. Consult https://build.golang.org/ to see whether they are new failures. Keep in mind that TryBots currently test exactly your git commit, without rebasing. If your commit's git parent is old, the failure might've already been fixed. Please don’t reply on this GitHub thread. Visit golang.org/cl/253898. |
Message from Gobot Gobot: Patch Set 3: TryBot-Result-1 2 of 20 TryBots failed: Consult https://build.golang.org/ to see whether they are new failures. Keep in mind that TryBots currently test exactly your git commit, without rebasing. If your commit's git parent is old, the failure might've already been fixed. Please don’t reply on this GitHub thread. Visit golang.org/cl/253898. |
Message from Giovanni Bajo: Patch Set 3: -Run-TryBot Code-Review-2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/253898. |
Message from Dominic Della Valle: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/253898. |
…ntains whitespace. CL 96455 brings CL 57753 to Windows However, a path comparison within it was left unquoted. If the Go source directory resides in a path containing whitespace, the interpreter will compare against the first portion of the path string, and treat the remainder as an expression. This patch amends that.
This PR (HEAD: 809ddbb) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/253898 to see it. Tip: You can toggle comments from me using the |
Message from Dominic Della Valle: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/253898. |
Message from Giovanni Bajo: Patch Set 5: Run-TryBot+1 -Code-Review Please don’t reply on this GitHub thread. Visit golang.org/cl/253898. |
Message from Gobot Gobot: Patch Set 5: TryBots beginning. Status page: https://farmer.golang.org/try?commit=1b83016b Please don’t reply on this GitHub thread. Visit golang.org/cl/253898. |
Message from Gobot Gobot: Patch Set 5: TryBot-Result+1 TryBots are happy. Please don’t reply on this GitHub thread. Visit golang.org/cl/253898. |
…ntains whitespace. CL 96455 brings CL 57753 to Windows However, a path comparison within it was left unquoted. If the Go source directory resides in a path containing whitespace, the interpreter will compare against the first portion of the path string, and treat the remainder as an expression. This patch amends that. For example, consider the path `C:\Users\Dominic Della Valle\Projects\Go\goroot\src` Issuing `make.bat` will print out `'Della' is not recognized as an internal or external command, operable program or batch file.` before proceeding. Change-Id: Ifcec159baeec940c29c61aa721c64c13c6fd8c14 GitHub-Last-Rev: 809ddbb GitHub-Pull-Request: #41319 Reviewed-on: https://go-review.googlesource.com/c/go/+/253898 Run-TryBot: Giovanni Bajo <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Giovanni Bajo <[email protected]> Trust: Giovanni Bajo <[email protected]>
This PR is being closed because golang.org/cl/253898 has been merged. |
CL 96455 brings CL 57753 to Windows
However, a path comparison within it was left unquoted.
If the Go source directory resides in a path containing whitespace,
the interpreter will compare against the first portion of the path string,
and treat the remainder as an expression.
This patch amends that.
For example, consider the path
C:\Users\Dominic Della Valle\Projects\Go\goroot\src
Issuing
make.bat
will print out'Della' is not recognized as an internal or external command, operable program or batch file.
before proceeding.