forked from bazel-contrib/bazel-gazelle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
73 lines (68 loc) · 1.62 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
66
67
68
69
70
71
72
73
load("@io_bazel_rules_go//go:def.bzl", "nogo")
load("//:def.bzl", "gazelle", "gazelle_binary")
# gazelle:prefix github.com/bazelbuild/bazel-gazelle
# gazelle:exclude vendor
# gazelle:exclude third_party
# gazelle:exclude .bazelci
# gazelle:exclude .idea
# gazelle:exclude .github
# gazelle:exclude .vscode
# gazelle:go_naming_convention import_alias
gazelle(
name = "gazelle",
command = "fix",
gazelle = ":gazelle_local",
)
gazelle_binary(
name = "gazelle_local",
languages = [
"//language/proto",
"//language/go",
"//internal/language/test_filegroup",
],
)
nogo(
name = "nogo",
vet = True,
visibility = ["//visibility:public"],
)
exports_files(["WORKSPACE"])
filegroup(
name = "all_files",
testonly = True,
# keep
srcs = glob(["vendor/**"]) + [
".bazelrc",
".gitignore",
".travis.yml",
"AUTHORS",
"BUILD.bazel",
"CODEOWNERS",
"CONTRIBUTING.md",
"CONTRIBUTORS",
"Design.rst",
"LICENSE",
"README.rst",
"WORKSPACE",
"def.bzl",
"deps.bzl",
"extend.rst",
"go.mod",
"go.sum",
"repository.rst",
"//cmd:all_files",
"//config:all_files",
"//flag:all_files",
"//internal:all_files",
"//label:all_files",
"//language:all_files",
"//merger:all_files",
"//pathtools:all_files",
"//repo:all_files",
"//resolve:all_files",
"//rule:all_files",
"//testtools:all_files",
"//walk:all_files",
],
visibility = ["//visibility:public"],
)