Update empty templates for go and grpc-gateway

This commit is contained in:
Adam Liddell 2021-02-28 00:17:45 +00:00
parent f0580c2aa0
commit 37a517d2f8
4 changed files with 7 additions and 21 deletions

View File

@ -19,9 +19,7 @@ proto_plugin(
"google/api",
"google/protobuf",
],
options = [
"paths=source_relative",
],
options = ["paths=source_relative"],
outputs = ["{protopath}_grpc.pb.go"],
tool = "@org_golang_google_grpc_cmd_protoc_gen_go_grpc//:protoc-gen-go-grpc",
visibility = ["//visibility:public"],

View File

@ -1,2 +1,2 @@
// Written by rules_proto_grpc fixer due to missing plugin output file
package {parent_directory_name}
package {go_package}

View File

@ -7,14 +7,8 @@ proto_plugin(
"google/api",
"google/protobuf",
],
outputs = [
"{protopath}.pb.gw.go",
],
# Show options:
# $ bazel run @grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway -- --help
# options = [
# "logtostderr=true",
# ],
options = ["paths=source_relative"],
outputs = ["{protopath}.pb.gw.go"],
tool = "@grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway",
visibility = ["//visibility:public"],
)
@ -25,14 +19,8 @@ proto_plugin(
"google/api",
"google/protobuf",
],
outputs = [
"{protopath}.swagger.json",
],
# Show options:
# $ bazel run @grpc_ecosystem_grpc_gateway//protoc-gen-openapiv2 -- --help
# options = [
# "json_names_for_fields",
# ],
options = ["paths=source_relative"],
outputs = ["{protopath}.swagger.json"],
tool = "@grpc_ecosystem_grpc_gateway//protoc-gen-openapiv2",
visibility = ["//visibility:public"],
)

View File

@ -1,2 +1,2 @@
// Written by rules_proto_grpc fixer due to missing plugin output file
package {parent_directory_name}
package {go_package}