Skip to content

Commit

Permalink
Allow compilers to be overwritten in go_grpc_library()
Browse files Browse the repository at this point in the history
  • Loading branch information
mering committed Jan 4, 2024
1 parent 6236dd8 commit 69ac10b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions proto/def.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,13 @@ go_proto_library = rule(
# attribute) and produces a go library for it.

def go_grpc_library(name, **kwargs):
go_proto_library(
name = name,
compilers = [
if "compilers" not in kwargs:
kwargs["compilers"] = [
Label("//proto:go_proto"),
Label("//proto:go_grpc_v2"),
],
]
go_proto_library(
name = name,
**kwargs
)

Expand Down

0 comments on commit 69ac10b

Please sign in to comment.