Allow building gerrit with experimental/unreleased Bazel.

Change-Id: I448dd8c0f42b70870805c3fd6b9a215a3be0fe06
This commit is contained in:
Dmitry Lomov
2017-10-25 10:55:35 +02:00
parent 3c7614f412
commit 60e3a55960

View File

@@ -5,5 +5,8 @@
GERRIT_VERSION = "2.16-SNAPSHOT"
def check_version(x):
if native.bazel_version == "":
# experimental / unreleased Bazel.
return
if native.bazel_version < x:
fail("\nERROR: Current Bazel version is {}, expected at least {}\n".format(native.bazel_version, x))