aboutsummaryrefslogtreecommitdiff
path: root/lib/versions.bzl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/versions.bzl')
-rw-r--r--lib/versions.bzl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/versions.bzl b/lib/versions.bzl
index 0209a6f..87ca73c 100644
--- a/lib/versions.bzl
+++ b/lib/versions.bzl
@@ -44,6 +44,9 @@ def _parse_bazel_version(bazel_version):
int tuples can be compared directly using binary operators (<, >).
+ For a development build of Bazel, this returns an unspecified version tuple
+ that compares higher than any released version.
+
Args:
bazel_version: the Bazel version string
@@ -52,6 +55,8 @@ def _parse_bazel_version(bazel_version):
"""
version = _extract_version_number(bazel_version)
+ if not version:
+ return (999999, 999999, 999999)
return tuple([int(n) for n in version.split(".")])
def _is_at_most(threshold, version):