forked from kubernetes-sigs/apiserver-builder-alpha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
35 lines (33 loc) · 750 Bytes
/
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
# gazelle:prefix sigs.k8s.io/apiserver-builder-alpha
# gazelle:proto disable
# gazelle:exclude vendor
# gazelle:exclude cmd/vendor
# gazelle:exclude example
# gazelle:exclude pkg
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
gazelle(
name = "gazelle",
command = "fix",
args = [
"-build_file_name",
"BUILD,BUILD.bazel",
],
)
pkg_tar(
name = "vendor",
srcs = glob([
"pkg/**",
"vendor/**",
]) + [
"Gopkg.lock",
"Gopkg.toml",
],
extension = "tar.gz",
remap_paths = {
"pkg": "vendor/sigs.k8s.io/apiserver-builder-alpha/pkg",
},
mode = "0644",
strip_prefix = ".",
visibility = ["//visibility:public"],
)