forked from bazel-contrib/rules_go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
55 lines (46 loc) · 1.44 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
load("@io_bazel_rules_go//go:def.bzl", "gazelle", "go_prefix", "go_path", "go_vet_test")
load("@io_bazel_rules_go//go/private:tools/lines_sorted_test.bzl", "lines_sorted_test")
load("@io_bazel_rules_go//go/private:rules/info.bzl", "go_info")
load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_google_protobuf")
go_prefix("github.com/bazelbuild/rules_go")
go_google_protobuf()
lines_sorted_test(
name = "contributors_sorted_test",
size = "small",
cmd = "grep -v '^#' $< | grep -v '^$$' >$@",
error_message = "Contributors must be sorted by first name",
file = "CONTRIBUTORS",
)
lines_sorted_test(
name = "authors_sorted_test",
size = "small",
cmd = "grep -v '^#' $< | grep -v '^$$' >$@",
error_message = "Authors must be sorted by first name",
file = "AUTHORS",
)
gazelle(
name = "gazelle",
)
# This could be any file, used as an anchor point for the directory in tests
exports_files(["AUTHORS"])
go_path(
name = "all_srcs",
tags = ["manual"],
deps = [
"//go/tools/builders:asm",
"//go/tools/builders:cgo",
"//go/tools/builders:compile",
"//go/tools/builders:embed",
"//go/tools/builders:generate_test_main",
"//go/tools/builders:link",
"//go/tools/builders:md5sum",
"//go/tools/fetch_repo",
"//go/tools/gazelle/gazelle",
"//go/tools/wtool",
],
)
go_vet_test(
name = "vet",
data = [":all_srcs"],
)
go_info()