Skip to content

Commit 639f1c9

Browse files
mbeardscopybara-github
authored andcommitted
Require ProtoInfo provider instead of proto_library rule for bazel cc_proto_library deps.
This change allows build logic that generates ProtoInfo providers from non-proto_library rules to interoperate with cc_proto_library. PiperOrigin-RevId: 757783011
1 parent 3a0119f commit 639f1c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bazel/private/bazel_cc_proto_library.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ proto_library(
182182
attrs = {
183183
"deps": attr.label_list(
184184
aspects = [cc_proto_aspect],
185-
allow_rules = ["proto_library"],
185+
providers = [ProtoInfo],
186186
allow_files = False,
187187
doc = """
188188
The list of <a href="protocol-buffer.html#proto_library"><code>proto_library</code></a>

0 commit comments

Comments
 (0)