summaryrefslogtreecommitdiffstats
path: root/version.bzl
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2018-01-13 09:08:12 +0100
committerDavid Ostrovsky <david@ostrovsky.org>2018-01-13 09:37:41 +0100
commit37d719af8cf3845b7fe685dec797096b204cf391 (patch)
treea7479c530a42a81eeca928b0a8bc9d3379445e62 /version.bzl
parent118fd52122759ab25d1a0d4d782c0fdd85a1889e (diff)
Bazel: Use version check function from bazel-skylib repository
Since version 0.10.0rc1 Bazel started to include version in release candidate and this broke version check in Bazel Gerrit CI: [1]. bazel-skylib is a project from the Bazel community that exposes utility rules. Consume working Bazel minimum version check from this repository. This version parsing machinery was adapted to work with release candidate version, by omiting rcx part during parsing. See this issue for more details: [2]. This change also bumps required bazel version to 0.7.0. [1] https://ci.bazel.build/blue/organizations/jenkins/Global%2Fgerrit/detail/gerrit/345/pipeline [2] https://github.com/bazelbuild/bazel/issues/4425 Change-Id: Ie3e17ea327c556daa234aeebbc2919be51109e91
Diffstat (limited to 'version.bzl')
-rw-r--r--version.bzl7
1 files changed, 0 insertions, 7 deletions
diff --git a/version.bzl b/version.bzl
index 340ba87317..62d841fa37 100644
--- a/version.bzl
+++ b/version.bzl
@@ -3,10 +3,3 @@
# when talking to the destination repository.
#
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))