-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathBUILD.bazel
46 lines (41 loc) · 1.1 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
# gazelle:prefix github.com/ewhauser/bazel-differ
# gazelle:exclude sql
load("@bazel_gazelle//:def.bzl", "gazelle")
gazelle(
name = "gazelle",
)
# gazelle_ci is called from CI to verify the repo is up-to-date
gazelle(
name = "gazelle_ci",
command = "fix",
extra_args = ["--mode=diff"],
)
gazelle(
name = "gazelle-update-repos",
args = [
"-from_file=go.mod",
"-to_macro=deps.bzl%go_dependencies",
"-prune",
],
command = "update-repos",
)
sh_binary(
name = "buildifier",
srcs = select(
{
"@bazel_tools//src/conditions:darwin": ["@buildifier_osx//file"],
"@bazel_tools//src/conditions:linux": ["@buildifier//file"],
},
no_match_error = "Buildifier does not have a binary for your platform",
),
)
sh_binary(
name = "buildozer",
srcs = select(
{
"@bazel_tools//src/conditions:darwin": ["@buildozer_osx//file"],
"@bazel_tools//src/conditions:linux": ["@buildozer//file"],
},
no_match_error = "Buildozer does not have a binary for your platform",
),
)