-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathBUILD.bazel
86 lines (71 loc) · 1.88 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
74
75
76
77
78
79
80
81
82
83
84
85
86
# gazelle:prefix k8s.io/repo-infra
# gazelle:exclude hack
# gazelle:proto disable
# gazelle:go_naming_convention go_default_library
# gazelle:go_naming_convention_external go_default_library
# Use the Bazel-vendored protobuf library since we use go_proto_library
# gazelle:resolve go github.com/golang/protobuf/proto @com_github_golang_protobuf//proto:go_default_library
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
load("//defs:run_in_workspace.bzl", "workspace_binary")
workspace_binary(
name = "gofmt",
cmd = "@go_sdk//:bin/gofmt",
)
workspace_binary(
name = "go",
cmd = "@go_sdk//:bin/go",
)
workspace_binary(
name = "kazel",
cmd = "//cmd/kazel",
)
workspace_binary(
name = "golangci-lint",
cmd = "@com_github_golangci_golangci_lint//:golangci-lint",
)
workspace_binary(
name = "buildifier",
cmd = "@com_github_bazelbuild_buildtools//buildifier",
)
load("@bazel_gazelle//:def.bzl", "gazelle")
gazelle(name = "gazelle")
exports_files([".kazelcfg.json"])
filegroup(
name = "package-srcs",
srcs = glob(
["**"],
exclude = [
"bazel-*/**",
".git/**",
],
),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//cmd/kazel:all-srcs",
"//defs:all-srcs",
"//go:all-srcs",
"//hack:all-srcs",
"//third_party/io_bazel_rules_go:all-srcs",
"//tools/build_tar:all-srcs",
"//verify:all-srcs",
],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)
platform(
name = "rbe_with_network",
parents = ["@rbe_default//config:platform"],
remote_execution_properties = """
properties: {
name: "dockerNetwork"
value: "standard"
}
{PARENT_REMOTE_EXECUTION_PROPERTIES}
""",
)