forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
44 lines (39 loc) · 1.09 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
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = ["main.go"],
importpath = "k8s.io/test-infra/prow/cmd/cm2kc",
visibility = ["//visibility:private"],
deps = [
"//prow/kube:go_default_library",
"@com_github_spf13_pflag//:go_default_library",
"@io_k8s_client_go//tools/clientcmd/api/v1:go_default_library",
"@io_k8s_sigs_yaml//:go_default_library",
],
)
go_binary(
name = "cm2kc",
embed = [":go_default_library"],
tags = ["manual"],
visibility = ["//visibility:public"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)
go_test(
name = "go_default_test",
srcs = ["main_test.go"],
data = glob(["testdata/**"]),
embed = [":go_default_library"],
tags = ["manual"],
deps = ["@com_github_spf13_pflag//:go_default_library"],
)