forked from kubernetes-sigs/cluster-api-provider-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
97 lines (86 loc) · 3.5 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
87
88
89
90
91
92
93
94
95
96
97
load("@bazel_gazelle//:def.bzl", "gazelle")
load("//build:run_in_workspace_with_goroot.bzl", "workspace_binary")
package(default_visibility = ["//visibility:public"])
# Update the excludes if you get "unrecognised import path"
# gazelle:prefix sigs.k8s.io/cluster-api-provider-aws
# gazelle:build_file_name BUILD.bazel,BUILD
# gazelle:proto disable_global
# gazelle:exclude vendor/github.com/golang/mock/mockgen/tests/vendor_dep
# gazelle:exclude vendor/golang.org/x/tools/cmd/bundle/testdata
# gazelle:exclude vendor/golang.org/x/tools/cmd/fiximports/testdata
# gazelle:exclude vendor/golang.org/x/tools/cmd/guru/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/analysis/passes/asmdecl/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/analysis/passes/atomic/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/analysis/passes/bools/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/analysis/passes/buildtag/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/analysis/passes/cgocall/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/analysis/passes/composite/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/analysis/passes/copylock/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/analysis/passes/ctrlflow/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/analysis/passes/lostcancel/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/analysis/passes/nilfunc/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/analysis/passes/pkgfact/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/analysis/passes/stdmethods/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/analysis/passes/stdmethods/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/analysis/passes/tests/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/analysis/passes/unsafeptr/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/analysis/passes/unusedresult/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/internal/gccgoimporter/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/internal/gcimporter/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/loader/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/pointer/testdata
# gazelle:exclude vendor/golang.org/x/tools/go/ssa/interp/testdata
# gazelle:exclude vendor/k8s.io/gengo/testdata
# gazelle:exclude vendor/github.com/golang/dep/cmd/dep/testdata
gazelle(
name = "gazelle",
command = "fix",
external = "vendored",
build_tags = ["integration"],
)
filegroup(
name = "all-images",
srcs = [
"//cmd/manager:manager-image",
],
)
workspace_binary(
name = "dep",
cmd = "@com_github_golang_dep//cmd/dep",
)
workspace_binary(
name = "generate",
args = [
"generate",
"./pkg/...",
"./cmd/...",
],
cmd = "@go_sdk//:bin/go",
)
workspace_binary(
name = "lint",
args = ["run"],
cmd = "@com_github_golangci_golangci-lint//cmd/golangci-lint",
)
workspace_binary(
name = "lint-full",
args = ["run --fast=false"],
cmd = "@com_github_golangci_golangci-lint//cmd/golangci-lint",
)
filegroup(
name = "all-srcs",
srcs = glob(["**"]),
)
filegroup(
name = "cluster-api-kustomize-yaml",
srcs = glob([
"vendor/sigs.k8s.io/cluster-api/config/crds/*.yaml",
"vendor/sigs.k8s.io/cluster-api/config/rbac/*.yaml",
"vendor/sigs.k8s.io/cluster-api/config/manager/*.yaml",
"vendor/sigs.k8s.io/cluster-api/config/default/*.yaml",
]),
visibility = ["//visibility:public"],
)
exports_files(glob([
"WORKSPACE",
]))