forked from loeffel-io/ls-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
64 lines (56 loc) · 1.4 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
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@io_bazel_rules_go//go:def.bzl", "TOOLS_NOGO", "nogo")
# gazelle:prefix github.com/loeffel-io/ls-lint/v2
# gazelle:exclude vendor
# gazelle:exclude .idea
gazelle(name = "gazelle")
gazelle(
name = "gazelle_update_repos",
args = [
"--from_file=go.mod",
"--to_macro=repositories.bzl%go_repositories",
"--prune",
],
command = "update-repos",
)
gazelle(
name = "gazelle_fix_diff",
command = "fix",
extra_args = ["--mode=diff"],
)
config_setting(
name = "darwin_arm64",
constraint_values = [
"@platforms//os:osx",
"@platforms//cpu:arm64",
],
)
nogo(
name = "nogo",
config = ":nogo.json",
visibility = ["//visibility:public"],
deps = TOOLS_NOGO + [],
)
exports_files(
srcs = [
"LICENSE",
"README.md",
],
visibility = ["//visibility:public"],
)
alias(
name = "gh",
actual = select({
":darwin_arm64": "@com_github_cli_cli_darwin_arm64//:bin/gh",
"//conditions:default": "@com_github_cli_cli_linux_amd64//:bin/gh",
}),
visibility = ["//visibility:public"],
)
alias(
name = "coreutils",
actual = select({
":darwin_arm64": "@com_github_uutils_coreutils_darwin_arm64//:coreutils",
"//conditions:default": "@com_github_uutils_coreutils_linux_amd64//:coreutils",
}),
visibility = ["//visibility:public"],
)