Skip to content

Commit

Permalink
Add descriptor to deps of go_gen_grpc_gateway.
Browse files Browse the repository at this point in the history
  • Loading branch information
bartle-stripe committed Jun 24, 2020
1 parent 294b4d8 commit 45797ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/internal/proto/examplepb/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package(default_visibility = ["//visibility:public"])
# gazelle:exclude stream.pb.gw.go
# gazelle:exclude use_go_template.pb.gw.go
# gazelle:exclude wrappers.pb.gw.go
# gazelle:go_grpc_compilers @io_bazel_rules_go//proto:go_grpc,//protoc-gen-grpc-gateway:go_gen_grpc_gateway

genrule(
name = "generated_proto",
Expand Down Expand Up @@ -58,7 +59,7 @@ go_proto_library(
name = "examplepb_go_proto",
compilers = [
"@io_bazel_rules_go//proto:go_grpc",
"//protoc-gen-grpc-gateway:go_gen_grpc_gateway", # keep
"//protoc-gen-grpc-gateway:go_gen_grpc_gateway",
],
importpath = "github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/examplepb",
proto = ":examplepb_proto",
Expand All @@ -67,7 +68,6 @@ go_proto_library(
"//examples/internal/proto/sub:go_default_library",
"//examples/internal/proto/sub2:go_default_library",
"//protoc-gen-swagger/options:go_default_library",
"@com_github_golang_protobuf//descriptor:go_default_library_gen", # keep
"@go_googleapis//google/api:annotations_go_proto",
],
)
Expand Down
1 change: 1 addition & 0 deletions protoc-gen-grpc-gateway/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ go_proto_compiler(
deps = [
"//runtime:go_default_library",
"//utilities:go_default_library",
"@com_github_golang_protobuf//descriptor:go_default_library_gen",
"@com_github_golang_protobuf//proto:go_default_library",
"@org_golang_google_grpc//:go_default_library",
"@org_golang_google_grpc//codes:go_default_library",
Expand Down

0 comments on commit 45797ed

Please sign in to comment.