|
@@ -1,3 +1,5 @@
|
|
|
|
+load("@bazel_skylib//:lib.bzl", "versions")
|
|
|
|
+
|
|
def _GetPath(ctx, path):
|
|
def _GetPath(ctx, path):
|
|
if ctx.label.workspace_root:
|
|
if ctx.label.workspace_root:
|
|
return ctx.label.workspace_root + '/' + path
|
|
return ctx.label.workspace_root + '/' + path
|
|
@@ -411,7 +413,4 @@ def check_protobuf_required_bazel_version():
|
|
This ensures bazel supports our approach to proto_library() depending on a
|
|
This ensures bazel supports our approach to proto_library() depending on a
|
|
copied filegroup. (Fixed in bazel 0.5.4)
|
|
copied filegroup. (Fixed in bazel 0.5.4)
|
|
"""
|
|
"""
|
|
- expected = apple_common.dotted_version("0.5.4")
|
|
|
|
- current = apple_common.dotted_version(native.bazel_version)
|
|
|
|
- if current.compare_to(expected) < 0:
|
|
|
|
- fail("Bazel must be newer than 0.5.4")
|
|
|
|
|
|
+ versions.check(minimum_bazel_version = "0.5.4")
|