aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/bootstrap
diff options
context:
space:
mode:
authorGravatar Klaus Aehlig <aehlig@google.com>2016-11-28 14:40:30 +0000
committerGravatar Klaus Aehlig <aehlig@google.com>2016-11-28 15:30:16 +0000
commitf3cb76315bb4305f4701502867cf8b23fa0f2d5f (patch)
tree27becc2df604b31f710e1d872e8fb6679c949722 /scripts/bootstrap
parente99df0affeeea3cce6d2b2906244a166e0b00dde (diff)
Improve ./compile.sh error message
...when neither run on a distribution artefact nor PROTOC is set. In this case, it might be that the user was trying to build a development version of bazel, which should be done with 'bazel build //src:bazel'. -- Change-Id: Ib76601f625b36515a94af7508dfd73a3a352710f Reviewed-on: https://cr.bazel.build/7536 MOS_MIGRATED_REVID=140350570
Diffstat (limited to 'scripts/bootstrap')
-rwxr-xr-xscripts/bootstrap/compile.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/bootstrap/compile.sh b/scripts/bootstrap/compile.sh
index f5724aa23d..0ecdcff768 100755
--- a/scripts/bootstrap/compile.sh
+++ b/scripts/bootstrap/compile.sh
@@ -173,10 +173,12 @@ if [ -z "${BAZEL_SKIP_JAVA_COMPILATION}" ]; then
else
[ -n "${PROTOC}" ] \
- || fail "Must specify PROTOC if not bootstrapping from the distribution artifact"
+ || fail "Must specify PROTOC if not bootstrapping from the distribution artifact;\
+ NOTE: development versions are built with 'bazel build //src:bazel'"
[ -n "${GRPC_JAVA_PLUGIN}" ] \
- || fail "Must specify GRPC_JAVA_PLUGIN if not bootstrapping from the distribution artifact"
+ || fail "Must specify GRPC_JAVA_PLUGIN if not bootstrapping from the distribution artifact;\
+ NOTE: development versions are built with 'bazel build //src:bazel'"
[[ -x "${PROTOC-}" ]] \
|| fail "Protobuf compiler not found in ${PROTOC-}"