-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBUILD
34 lines (30 loc) · 980 Bytes
/
BUILD
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
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@com_github_sluongng_nogo_analyzer//:def.bzl", "nogo_config")
load("@com_github_sluongng_nogo_analyzer//staticcheck:def.bzl", "staticcheck_analyzers")
load("@io_bazel_rules_go//go:def.bzl", "TOOLS_NOGO", "nogo")
load(":staticheck.bzl", "STATICCHECK_ANALYZERS", "STATICCHECK_OVERRIDE")
# gazelle:prefix github.com/ekhabarov/bazel-k8s-envoy
# gazelle:build_file_name BUILD,BUILD.bazel
gazelle(name = "gazelle")
gazelle(
name = "deps",
args = [
"-from_file=go.mod",
"-build_file_proto_mode=disable",
"-to_macro=go_deps.bzl%go_deps",
"-prune",
],
command = "update-repos",
)
nogo_config(
name = "nogo_config",
out = "nogo_config.json",
analyzers = STATICCHECK_ANALYZERS,
override = STATICCHECK_OVERRIDE,
)
nogo(
name = "nogo",
config = ":nogo_config.json",
visibility = ["//visibility:public"],
deps = staticcheck_analyzers(STATICCHECK_ANALYZERS),
)