-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBUILD.bazel
43 lines (35 loc) · 1.03 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
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/apis
# gazelle:go_generate_proto false
# -- Gazelle language "protobuf" ---
# gazelle:proto_language go enable true
gazelle_binary(
name = "gazelle-custom",
languages = DEFAULT_LANGUAGES,
)
proto_gazelle(
name = "gazelle",
cfgs = ["//:rules_proto_config.yaml"],
command = "update",
gazelle = ":gazelle-custom",
imports = [
"@googleapis//:imports.csv",
"@protoapis//:imports.csv",
],
)
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",
)