Skip to content

Commit

Permalink
build: in clean.bash, look for 'go' in GOROOT/bin instead of GOBIN
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
nikson authored and Bryan C. Mills committed Feb 26, 2020
1 parent f5b5d77 commit 8bdd24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clean.bash
Expand Up @@ -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
Expand Down

0 comments on commit 8bdd24d

Please sign in to comment.