File tree Expand file tree Collapse file tree 5 files changed +35
-3
lines changed Expand file tree Collapse file tree 5 files changed +35
-3
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ filegroup(
70
70
"//staging:all-srcs",
71
71
"//test:all-srcs",
72
72
"//third_party:all-srcs",
73
+ "//translations:all-srcs",
73
74
"//vendor:all-srcs",
74
75
],
75
76
tags = ["automanaged"],
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ pushd "${KUBE_ROOT}" >/dev/null
42
42
# These are files for e2e tests.
43
43
BINDATA_OUTPUT=" test/e2e/generated/bindata.go"
44
44
go-bindata -nometadata -o " ${BINDATA_OUTPUT} .tmp" -pkg generated \
45
- -ignore .jpg -ignore .png -ignore .md \
45
+ -ignore .jpg -ignore .png -ignore .md -ignore ' BUILD(\.bazel)? ' \
46
46
" test/e2e/testing-manifests/..." \
47
47
" test/images/..." \
48
48
" test/fixtures/..."
@@ -64,7 +64,7 @@ rm -f "${BINDATA_OUTPUT}.tmp"
64
64
# These are files for runtime code
65
65
BINDATA_OUTPUT=" pkg/generated/bindata.go"
66
66
go-bindata -nometadata -nocompress -o " ${BINDATA_OUTPUT} .tmp" -pkg generated \
67
- -ignore .jpg -ignore .png -ignore .md \
67
+ -ignore .jpg -ignore .png -ignore .md -ignore ' BUILD(\.bazel)? ' \
68
68
" translations/..."
69
69
70
70
gofmt -s -w " ${BINDATA_OUTPUT} .tmp"
Original file line number Diff line number Diff line change 5
5
"go_library" ,
6
6
)
7
7
8
+ genrule (
9
+ name = "bindata" ,
10
+ srcs = [
11
+ "//translations:all-srcs" ,
12
+ ],
13
+ outs = ["bindata.go" ],
14
+ cmd = """
15
+ $(location //vendor/github.com/jteeuwen/go-bindata/go-bindata:go-bindata) \
16
+ -nometadata -nocompress -o "$(OUTS)" -pkg generated \
17
+ -prefix $$(pwd) \
18
+ -ignore .jpg -ignore .png -ignore .md -ignore 'BUILD(\.bazel)?' \
19
+ $(SRCS)
20
+ """ ,
21
+ tools = [
22
+ "//vendor/github.com/jteeuwen/go-bindata/go-bindata" ,
23
+ ],
24
+ )
25
+
8
26
go_library (
9
27
name = "go_default_library" ,
10
28
srcs = [
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ genrule(
30
30
$(location //vendor/github.com/jteeuwen/go-bindata/go-bindata:go-bindata) \
31
31
-nometadata -o "$(OUTS)" -pkg generated \
32
32
-prefix $$(pwd) \
33
- -ignore .jpg -ignore .png -ignore .md \
33
+ -ignore .jpg -ignore .png -ignore .md -ignore 'BUILD(\.bazel)?' \
34
34
$(SRCS)
35
35
""" ,
36
36
tools = [
Original file line number Diff line number Diff line change
1
+ filegroup (
2
+ name = "package-srcs" ,
3
+ srcs = glob (["**" ]),
4
+ tags = ["automanaged" ],
5
+ visibility = ["//visibility:private" ],
6
+ )
7
+
8
+ filegroup (
9
+ name = "all-srcs" ,
10
+ srcs = [":package-srcs" ],
11
+ tags = ["automanaged" ],
12
+ visibility = ["//visibility:public" ],
13
+ )
You can’t perform that action at this time.
0 commit comments