From f3cb76315bb4305f4701502867cf8b23fa0f2d5f Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 28 Nov 2016 14:40:30 +0000 Subject: 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 --- scripts/bootstrap/compile.sh | 6 ++++-- 1 file 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-}" -- cgit v1.2.3