-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
47 lines (42 loc) · 1.21 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
load("@bazel_gazelle//:def.bzl", "gazelle", "gazelle_binary")
gazelle_binary(
name = "gazelle-buf",
languages = [
# Loads the native proto extension
"@bazel_gazelle//language/proto:go_default_library",
# Loads the Buf extension
"@rules_buf//gazelle/buf:buf",
# NOTE: This needs to be loaded after the proto language
],
)
# We need this since the default generated @buf_deps//google/api:api_proto dependency just does not exist
# it somehow is actually called visibility_proto.
# gazelle:resolve_regexp proto proto google/api/.*\.proto @buf_deps//google/api:visibility_proto
gazelle(
name = "gazelle-proto",
gazelle = ":gazelle-buf",
)
gazelle(
name = "gazelle-update-repos-proto",
args = [
"--from_file=protobufs/buf.yaml",
"-to_macro=buf_deps.bzl%buf_deps",
"-prune",
],
command = "update-repos",
gazelle = ":gazelle-buf",
)
# gazelle:prefix github.com/rose-m/monoone
# gazelle:go_generate_proto false
gazelle(
name = "gazelle",
)
gazelle(
name = "gazelle-update-repos",
args = [
"-from_file=go.mod",
"-to_macro=deps.bzl%go_dependencies",
"-prune",
],
command = "update-repos",
)