-
Notifications
You must be signed in to change notification settings - Fork 15.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bazel] Add fixes for --incompatible_load_{cc,java,proto}_rules_from_bzl (Part 2) #6445
[bazel] Add fixes for --incompatible_load_{cc,java,proto}_rules_from_bzl (Part 2) #6445
Conversation
protobuf_deps.bzl
Outdated
@@ -5,6 +5,14 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | |||
def protobuf_deps(): | |||
"""Loads common dependencies needed to compile the protobuf library.""" | |||
|
|||
if not native.existing_rule("zlib"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be "bazel_skylib" here instead of "zlib"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed.
7b54c9a
to
14228d5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your review! ptal
protobuf_deps.bzl
Outdated
@@ -5,6 +5,14 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | |||
def protobuf_deps(): | |||
"""Loads common dependencies needed to compile the protobuf library.""" | |||
|
|||
if not native.existing_rule("zlib"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed.
I think to make the tests happy you will have to remove |
…bzl (Part 2) This change adds the required loads to examples and zlib. For full compatibility with --incompatible_load_{cc,java,proto}_rules_from_bzl, we will need to roll gtest to a newer version.
14228d5
to
7911b18
Compare
Thanks for saving me time to figure that out! |
This change adds the required loads to examples and zlib. Sorry for missing them in the first PR.
For full compatibility with --incompatible_load_{cc,java,proto}_rules_from_bzl,
we will need to roll gtest to a newer version.