Lines Matching +full:bazel +full:- +full:0
1 # Copyright 2018 The Bazel Authors. All rights reserved.
7 # http://www.apache.org/licenses/LICENSE-2.0
15 """Skylib module containing functions for checking Bazel versions."""
18 """Returns the current Bazel version"""
38 # Parse the bazel version string from `native.bazel_version`.
40 # "0.10.0rc1 abc123d" => (0, 10, 0)
41 # "0.3.0" => (0, 3, 0)
43 """Parses a version string into a 3-tuple of ints
48 bazel_version: the Bazel version string
51 An int 3-tuple of a (major, minor, patch) version.
83 """Check that the version of Bazel is valid within the specified range.
86 minimum_bazel_version: minimum version of Bazel expected
87 maximum_bazel_version: maximum version of Bazel expected
88 … bazel_version: the version of Bazel to check. Used for testing, defaults to native.bazel_version
92 fail("Current Bazel version is lower than 0.2.1; expected at least {}".format(
96 # Using a non-release version, assume it is good.
105 fail("Current Bazel version is {}; expected at least {}".format(
115 fail("Current Bazel version is {}; expected at most {}".format(