Fix buildifier lint

This commit is contained in:
Adam Liddell 2023-12-14 17:22:04 +00:00
parent c77d668709
commit f6dc2de237
2 changed files with 2 additions and 2 deletions

View File

@ -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 + [

View File

@ -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 + [