-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
51 lines (43 loc) · 1.88 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
load("@bazel_gazelle//:def.bzl", "gazelle", "gazelle_binary")
load("@build_stack_rules_proto//rules:proto_gazelle.bzl", "DEFAULT_LANGUAGES", "proto_gazelle")
exports_files(["rules_proto_config.yaml"])
# -- Gazelle language "walk" ---
# gazelle:exclude vendor
# -- Gazelle language "resolve" ---
# -- Gazelle language "go" ---
# gazelle:prefix github.com/stackb/grpc-starlark
# gazelle:go_generate_proto false
# -- Gazelle language "protobuf" ---
# gazelle:proto_plugin protoc-gen-go implementation golang:protobuf:protoc-gen-go
# gazelle:proto_plugin protoc-gen-go-grpc implementation grpc:grpc-go:protoc-gen-go-grpc
# gazelle:proto_plugin protoc-gen-go-grpc deps @org_golang_google_grpc//:go_default_library
# gazelle:proto_plugin protoc-gen-go-grpc deps @org_golang_google_grpc//codes
# gazelle:proto_plugin protoc-gen-go-grpc deps @org_golang_google_grpc//status
# gazelle:proto_rule proto_compile implementation stackb:rules_proto:proto_compile
# gazelle:proto_rule proto_go_library implementation stackb:rules_proto:proto_go_library
# gazelle:proto_rule proto_go_library deps @org_golang_google_protobuf//reflect/protoreflect
# gazelle:proto_rule proto_go_library deps @org_golang_google_protobuf//runtime/protoimpl
# gazelle:proto_rule proto_go_library visibility //visibility:public
# gazelle:proto_language go plugin protoc-gen-go
# gazelle:proto_language go plugin protoc-gen-go-grpc
# gazelle:proto_language go rule proto_compile
gazelle_binary(
name = "gazelle-protobuf",
languages = DEFAULT_LANGUAGES,
)
proto_gazelle(
name = "gazelle",
cfgs = ["//:rules_proto_config.yaml"],
command = "update",
gazelle = ":gazelle-protobuf",
)
gazelle(
name = "update_go_repositories",
args = [
"-from_file=go.mod",
"-to_macro=go_repositories.bzl%go_repositories",
"-build_file_proto_mode=disable_global",
"-prune=true",
],
command = "update-repos",
)