Update empty templates for go and grpc-gateway
This commit is contained in:
parent
f0580c2aa0
commit
37a517d2f8
|
@ -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"],
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
// Written by rules_proto_grpc fixer due to missing plugin output file
|
||||
package {parent_directory_name}
|
||||
package {go_package}
|
||||
|
|
|
@ -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"],
|
||||
)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
// Written by rules_proto_grpc fixer due to missing plugin output file
|
||||
package {parent_directory_name}
|
||||
package {go_package}
|
||||
|
|
Loading…
Reference in New Issue