Commit 3d86d45d authored by Mostyn Bramley-Moore's avatar Mostyn Bramley-Moore Committed by Brad Fitzpatrick

build: fail nicely if somebody runs all.bash from a binary tarball package

Fixes golang/go#20008.

Change-Id: I7a429490320595fc558a8c5e260ec41bc3a788e2
Reviewed-on: https://go-review.googlesource.com/41858Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
parent 92d918da
......@@ -8,6 +8,10 @@ if [ ! -f make.bash ]; then
echo 'all.bash must be run from $GOROOT/src' 1>&2
exit 1
fi
if [ ! -f cmd/api/run.go ]; then
echo 'all.bash cannot be run from a binary download package' 1>&2
exit 1
fi
OLDPATH="$PATH"
. ./make.bash "$@" --no-banner
bash run.bash --no-rebuild
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment