Skip to content

Commit

Permalink
build: fail nicely if somebody runs all.bash from a binary tarball pa…
Browse files Browse the repository at this point in the history
…ckage

Fixes #20008.

Change-Id: I7a429490320595fc558a8c5e260ec41bc3a788e2
Reviewed-on: https://go-review.googlesource.com/41858
Reviewed-by: Brad Fitzpatrick <[email protected]>
Run-TryBot: Brad Fitzpatrick <[email protected]>
  • Loading branch information
mostynb authored and bradfitz committed Apr 26, 2017
1 parent 92d918d commit 3d86d45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/all.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d86d45

Please sign in to comment.