-
Notifications
You must be signed in to change notification settings - Fork 693
/
BUILD.bazel
73 lines (62 loc) · 1.31 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_kubernetes_build//defs:run_in_workspace.bzl", "workspace_binary")
workspace_binary(
name = "dep",
cmd = "//vendor/github.com/golang/dep/cmd/dep",
)
workspace_binary(
name = "golint",
cmd = "//vendor/github.com/golang/lint/golint",
)
load("@bazel_gazelle//:def.bzl", "gazelle")
# gazelle:prefix k8s.io/org
# gazelle:proto disable_global
gazelle(
name = "gazelle",
command = "fix",
external = "vendored",
)
gazelle(
name = "gazelle-diff",
command = "fix",
external = "vendored",
mode = "diff",
)
workspace_binary(
name = "kazel",
cmd = "//vendor/k8s.io/repo-infra/kazel",
)
workspace_binary(
name = "kazel-diff",
args = [
"--dry-run",
"--print-diff",
],
cmd = "//vendor/k8s.io/repo-infra/kazel",
)
workspace_binary(
name = "gofmt",
cmd = "@go_sdk//:bin/gofmt",
)
filegroup(
name = "package-srcs",
srcs = glob(
["**"],
exclude = [
"bazel-*/**",
".git/**",
],
),
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//admin:all-srcs",
"//cmd/merge:all-srcs",
"//config:all-srcs",
"//vendor:all-srcs",
],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)