-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix workspace and replace compile_protos with regenerate-files
- Loading branch information
1 parent
9646a98
commit c719c96
Showing
9 changed files
with
865 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6.4.0 | ||
6.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
load("@io_bazel_rules_go//proto:compiler.bzl", "go_proto_compiler") | ||
load("@io_bazel_rules_go//proto/wkt:well_known_types.bzl", "PROTO_RUNTIME_DEPS", "WELL_KNOWN_TYPES_APIV2") | ||
|
||
def use_new_compilers(): | ||
go_proto_compiler( | ||
name = "go_protoc_gen_go", | ||
options = [ | ||
"paths=source_relative", | ||
], | ||
plugin = "@org_golang_google_protobuf//cmd/protoc-gen-go", | ||
suffix = ".pb.go", | ||
visibility = ["//visibility:public"], | ||
deps = PROTO_RUNTIME_DEPS + WELL_KNOWN_TYPES_APIV2, | ||
) | ||
go_proto_compiler( | ||
name = "go_protoc_gen_go_grpc", | ||
options = [ | ||
"paths=source_relative", | ||
], | ||
plugin = "@org_golang_google_grpc_cmd_protoc_gen_go_grpc//:protoc-gen-go-grpc", | ||
suffix = "_grpc.pb.go", | ||
visibility = ["//visibility:public"], | ||
deps = PROTO_RUNTIME_DEPS + [ | ||
"@org_golang_google_grpc//:go_default_library", | ||
"@org_golang_google_grpc//codes:go_default_library", | ||
"@org_golang_google_grpc//status:go_default_library", | ||
], | ||
) | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.