-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBUILD.bazel
81 lines (70 loc) · 3.09 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
load("@bazel_gazelle//:def.bzl", "gazelle", "gazelle_binary")
# -- Gazelle language "walk" ---
# gazelle:exclude vendor
# -- Gazelle language "resolve" ---
# gazelle:resolve go go github.com/stackb/rules_proto/pkg/protoc @build_stack_rules_proto//pkg/protoc
# gazelle:resolve go go github.com/stackb/rules_proto/pkg/goldentest @build_stack_rules_proto//pkg/goldentest
# gazelle:resolve go go github.com/bazelbuild/buildtools/build @com_github_bazelbuild_buildtools//build:go_default_library
# -- Gazelle language "go" ---
# gazelle:prefix github.com/stackb/scala-gazelle
# gazelle:go_generate_proto false
# -- Gazelle language "protobuf" ---
# gazelle:proto_rule proto_compile implementation stackb:rules_proto:proto_compile
# gazelle:proto_rule proto_compiled_sources implementation stackb:rules_proto:proto_compiled_sources
# 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_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_compiled_sources
# gazelle:proto_plugin java implementation builtin:java
# gazelle:proto_rule proto_java_library implementation stackb:rules_proto:proto_java_library
# gazelle:proto_rule proto_java_library deps @protobuf_java_jar//jar
# gazelle:proto_rule proto_java_library visibility //visibility:public
# gazelle:proto_language java plugin java
# gazelle:proto_language java rule proto_compile
# gazelle:proto_language java rule proto_java_library
# gazelle:proto_language java enabled false
gazelle_binary(
name = "gazelle-protobuf",
languages = [
"@bazel_gazelle//language/go",
"@bazel_gazelle//language/proto",
"@build_stack_rules_proto//language/protobuf",
],
visibility = ["//visibility:public"],
)
gazelle(
name = "gazelle",
gazelle = ":gazelle-protobuf",
)
gazelle(
name = "update_go_repositories",
args = [
"-from_file=go.mod",
"-to_macro=go_repos.bzl%go_repositories",
"-build_file_proto_mode=disable_global",
"-prune=true",
],
command = "update-repos",
)
# ----------------------------------------------------
# Test-Related
# ----------------------------------------------------
filegroup(
name = "all_files",
srcs = [
"BUILD.bazel",
"WORKSPACE",
"go_repos.bzl",
"workspace_deps.bzl",
"//language/scala:all_files",
],
visibility = ["//visibility:public"],
)