build: in clean.bash, look for 'go' in GOROOT/bin instead of GOBIN

Updates #14340
Updates #32674
Fixes #36659

Change-Id: I5bfaba4e53dab894d113dd5065794d66f1a25f2b
Reviewed-on: https://go-review.googlesource.com/c/go/+/215478
Reviewed-by: Bryan C. Mills <bcmills@google.com>
This commit is contained in:
Nikson Kanti Paul 2020-01-21 01:50:27 +01:00 committed by Bryan C. Mills
parent f5b5d77ee2
commit 8bdd24df6a
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ if [ ! -f run.bash ]; then
fi
export GOROOT="$(cd .. && pwd)"
gobin="${GOBIN:-../bin}"
gobin="${GOROOT}"/bin
if ! "$gobin"/go help >/dev/null 2>&1; then
echo 'cannot find go command; nothing to clean' >&2
exit 1