diff --git a/cpp/cpp_grpc_library.bzl b/cpp/cpp_grpc_library.bzl index 446694a8..1e242ea6 100644 --- a/cpp/cpp_grpc_library.bzl +++ b/cpp/cpp_grpc_library.bzl @@ -37,7 +37,7 @@ def cpp_grpc_library(name, **kwargs): # buildifier: disable=function-docstring deps = GRPC_DEPS + kwargs.get("deps", []), hdrs = [name_pb + "_hdrs"], includes = [name_pb] if kwargs.get("output_mode", "PREFIXED") == "PREFIXED" else ["."], - **{ + **{ k: v for (k, v) in kwargs.items() if k in bazel_build_rule_common_attrs + [ diff --git a/tools/rulegen/cpp.go b/tools/rulegen/cpp.go index d08d2f63..f8e45c25 100644 --- a/tools/rulegen/cpp.go +++ b/tools/rulegen/cpp.go @@ -63,7 +63,7 @@ var cppGrpcLibraryRuleTemplate = mustTemplate(cppLibraryRuleTemplateString + ` deps = GRPC_DEPS + kwargs.get("deps", []), hdrs = [name_pb + "_hdrs"], includes = [name_pb] if kwargs.get("output_mode", "PREFIXED") == "PREFIXED" else ["."], - **{ + **{ k: v for (k, v) in kwargs.items() if k in bazel_build_rule_common_attrs + [