forked from simmonmt/xmaslist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
40 lines (34 loc) · 783 Bytes
/
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
load("@io_bazel_rules_go//go:def.bzl", "nogo")
load("@bazel_gazelle//:def.bzl", "gazelle")
GAZELLE_EXCLUDES = [
"--exclude=client",
"--exclude=node_modules",
]
# gazelle:prefix github.com/simmonmt/xmaslist
gazelle(
name = "gazelle",
command = "fix",
extra_args = GAZELLE_EXCLUDES + [
"--mode=diff",
],
)
gazelle(
name = "gazelle_fix",
command = "fix",
extra_args = GAZELLE_EXCLUDES,
)
# Run as:
# bazel run :gazelle_updaterepos -- -args github.com/whatever
gazelle(
name = "gazelle_updaterepos",
command = "update-repos",
extra_args = [
"--to_macro=go_repositories.bzl%go_repositories",
],
)
gazelle(name = "gazelle_cmd")
nogo(
name = "nogo",
vet = True,
visibility = ["//visibility:public"],
)