java_grpc_library.bzl: Disable Automatic Exec Groups inside grpc libraries (#10514)

This commit is contained in:
kotlaja 2023-09-06 02:21:10 +02:00 committed by GitHub
parent 36e0af66fe
commit 9ab35b05de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -94,6 +94,7 @@ def _java_rpc_library_impl(ctx):
args.add_joined("--descriptor_set_in", descriptor_set_in, join_with = ctx.configuration.host_path_separator) args.add_joined("--descriptor_set_in", descriptor_set_in, join_with = ctx.configuration.host_path_separator)
args.add_all(srcs, map_each = _path_ignoring_repository) args.add_all(srcs, map_each = _path_ignoring_repository)
# TODO: Once Bazel 5.x support is dropped, add 'toolchain = None' inside the action.
ctx.actions.run( ctx.actions.run(
inputs = depset([toolchain.plugin] + srcs, transitive = [descriptor_set_in]), inputs = depset([toolchain.plugin] + srcs, transitive = [descriptor_set_in]),
outputs = [srcjar], outputs = [srcjar],
@ -133,6 +134,8 @@ _java_grpc_library = rule(
"_toolchain": attr.label( "_toolchain": attr.label(
default = Label("//compiler:java_grpc_library_toolchain"), default = Label("//compiler:java_grpc_library_toolchain"),
), ),
# TODO: Enable AEGs when Bazel 5.x support is dropped.
"_use_auto_exec_groups": attr.bool(default = False),
}, },
toolchains = ["@bazel_tools//tools/jdk:toolchain_type"], toolchains = ["@bazel_tools//tools/jdk:toolchain_type"],
fragments = ["java"], fragments = ["java"],
@ -160,6 +163,8 @@ _java_lite_grpc_library = rule(
"_toolchain": attr.label( "_toolchain": attr.label(
default = Label("//compiler:java_lite_grpc_library_toolchain"), default = Label("//compiler:java_lite_grpc_library_toolchain"),
), ),
# TODO: Enable AEGs when Bazel 5.x support is dropped.
"_use_auto_exec_groups": attr.bool(default = False),
}, },
toolchains = ["@bazel_tools//tools/jdk:toolchain_type"], toolchains = ["@bazel_tools//tools/jdk:toolchain_type"],
fragments = ["java"], fragments = ["java"],