Skip to content

Commit e575800

Browse files
comiuscopybara-github
authored andcommitted
Revert name of implicit dependencies in Java proto libraries
PiperOrigin-RevId: 449223847
1 parent 668805a commit e575800

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/starlark/builtins_bzl/common/java/proto/java_proto_library.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def _bazel_java_proto_aspect_impl(target, ctx):
4747
runtime jars.
4848
"""
4949

50-
proto_toolchain_info = ctx.attr._java_proto_toolchain[ProtoLangToolchainInfo]
50+
proto_toolchain_info = ctx.attr._aspect_java_proto_toolchain[ProtoLangToolchainInfo]
5151
source_jar = None
5252
if proto_common.experimental_should_generate_code(target, proto_toolchain_info, "java_proto_library"):
5353
# Generate source jar using proto compiler.
@@ -130,7 +130,7 @@ def java_compile_for_protos(ctx, output_jar_suffix, source_jar = None, deps = []
130130
bazel_java_proto_aspect = aspect(
131131
implementation = _bazel_java_proto_aspect_impl,
132132
attrs = {
133-
"_java_proto_toolchain": attr.label(
133+
"_aspect_java_proto_toolchain": attr.label(
134134
default = configuration_field(fragment = "proto", name = "proto_toolchain_for_java"),
135135
),
136136
"_java_toolchain": attr.label(

0 commit comments

Comments
 (0)