-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
BUILD.bazel
65 lines (58 loc) · 1.45 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
65
load("@bazel_gazelle//:def.bzl", "DEFAULT_LANGUAGES", "gazelle", "gazelle_binary")
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
# gazelle:exclude .user.bazelrc
# gazelle:exclude go.work.sum
# gazelle:exclude bazel-*
# gazelle:exclude examples/**
filegroup(
name = "all_files",
testonly = True,
srcs = [
".bazelrc",
".bazelversion",
".gitignore",
"BUILD.bazel",
"LICENSE",
"README.md",
"WORKSPACE",
"buildbuddy.yaml",
"def.bzl",
"deps.bzl",
"go.work",
"//.github:all_files",
"//goci-lint:all_files",
"//golangci-lint:all_files",
"//private:all_files",
"//staticcheck:all_files",
"//tools:all_files",
],
visibility = ["//visibility:public"],
)
gazelle_binary(
name = "gazelle_binary",
languages = DEFAULT_LANGUAGES + ["@bazel_gazelle//internal/language/test_filegroup"],
)
# gazelle:prefix github.com/sluongng/nogo-analyzer
gazelle(
name = "gazelle",
gazelle = "gazelle_binary",
)
gazelle(
name = "update-deps",
args = [
"-from_file=go.work",
"-to_macro=private/deps.bzl%nogo_analyzer_deps",
"-prune",
],
command = "update-repos",
gazelle = "gazelle_binary",
)
alias(
name = "goworksync",
actual = "//tools:goworksync",
)
alias(
name = "gobin",
actual = "@go_sdk//:bin/go",
visibility = ["//visibility:public"],
)