diff options
author | 2016-11-28 14:40:30 +0000 | |
---|---|---|
committer | 2016-11-28 15:30:16 +0000 | |
commit | f3cb76315bb4305f4701502867cf8b23fa0f2d5f (patch) | |
tree | 27becc2df604b31f710e1d872e8fb6679c949722 /scripts/bootstrap | |
parent | e99df0affeeea3cce6d2b2906244a166e0b00dde (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-x | scripts/bootstrap/compile.sh | 6 |
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-}" |