mirror of
https://github.com/google/nomulus
synced 2026-01-10 16:00:52 +00:00
Update FOSS bazel version to 0.10.0
Also changed version checker tuple from strings to ints, so that 0.10.0 is larger than 0.4.2. I think we should just get rid of the version checker all together. It is still requirement 0.4.2 as minimal bazel version, which mostly like will not work with Nomulus at this point. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=184536748
This commit is contained in:
@@ -2480,8 +2480,8 @@ def _parse_bazel_version(bazel_version):
|
||||
# Split into (release, date) parts and only return the release
|
||||
# as a tuple of integers.
|
||||
parts = version.split("-", 1)
|
||||
# Turn "release" into a tuple of strings
|
||||
# Turn "release" into a tuple of ints.
|
||||
version_tuple = ()
|
||||
for number in parts[0].split("."):
|
||||
version_tuple += (str(number),)
|
||||
version_tuple += (int(number),)
|
||||
return version_tuple
|
||||
|
||||
Reference in New Issue
Block a user