From 754216bb55059c40be8d6782d2bc497b9f9c1974 Mon Sep 17 00:00:00 2001 From: Googler Date: Thu, 9 Feb 2023 03:09:41 -0800 Subject: [PATCH] Customize exec_group on proto_library To support legacy code. PiperOrigin-RevId: 508323701 Change-Id: Icbdb9914aa17c967002960cfffe80aa8f56d2c96 --- src/main/starlark/builtins_bzl/common/proto/proto_library.bzl | 1 + src/main/starlark/builtins_bzl/common/proto/proto_semantics.bzl | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/starlark/builtins_bzl/common/proto/proto_library.bzl b/src/main/starlark/builtins_bzl/common/proto/proto_library.bzl index 00245fb8bdb464..8f667f6d059937 100644 --- a/src/main/starlark/builtins_bzl/common/proto/proto_library.bzl +++ b/src/main/starlark/builtins_bzl/common/proto/proto_library.bzl @@ -296,4 +296,5 @@ proto_library = rule( fragments = ["proto"] + semantics.EXTRA_FRAGMENTS, provides = [ProtoInfo], output_to_genfiles = True, # TODO(b/204266604) move to bin dir + exec_groups = semantics.EXEC_GROUPS, ) diff --git a/src/main/starlark/builtins_bzl/common/proto/proto_semantics.bzl b/src/main/starlark/builtins_bzl/common/proto/proto_semantics.bzl index 8634dd6dcb7963..806484baa03ab5 100644 --- a/src/main/starlark/builtins_bzl/common/proto/proto_semantics.bzl +++ b/src/main/starlark/builtins_bzl/common/proto/proto_semantics.bzl @@ -36,4 +36,5 @@ semantics = struct( "--direct_dependencies_violation_msg=" + "%%s is imported, but %s doesn't directly depend on a proto_library that 'srcs' it." ), + EXEC_GROUPS = {}, )