mirror of https://github.com/k3s-io/k3s
add genrule for test bindata
parent
1cd2968917
commit
56200d16a3
|
@ -0,0 +1,8 @@
|
|||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
filegroup(
|
||||
name = "sources",
|
||||
srcs = glob([
|
||||
"**/*",
|
||||
]),
|
||||
)
|
|
@ -10,3 +10,10 @@ filegroup(
|
|||
"pod",
|
||||
],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "sources",
|
||||
srcs = glob([
|
||||
"**/*",
|
||||
]),
|
||||
)
|
||||
|
|
|
@ -12,6 +12,30 @@ load(
|
|||
|
||||
go_library(
|
||||
name = "go_default_library",
|
||||
srcs = ["main.go"],
|
||||
tags = ["automanaged"],
|
||||
srcs = [
|
||||
"main.go",
|
||||
":bindata",
|
||||
],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "bindata",
|
||||
srcs = [
|
||||
"//examples:sources",
|
||||
"//docs/user-guide:sources",
|
||||
"//test/images:sources",
|
||||
"//test/fixtures:sources",
|
||||
"//test/e2e/testing-manifests:sources",
|
||||
],
|
||||
outs = ["bindata.go"],
|
||||
cmd = """
|
||||
$(location //vendor:github.com/jteeuwen/go-bindata/go-bindata) \
|
||||
-nometadata -o "$(OUTS)" -pkg generated \
|
||||
-prefix $$(pwd) \
|
||||
-ignore .jpg -ignore .png -ignore .md \
|
||||
$(SRCS)
|
||||
""",
|
||||
tools = [
|
||||
"//vendor:github.com/jteeuwen/go-bindata/go-bindata",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
filegroup(
|
||||
name = "sources",
|
||||
srcs = glob([
|
||||
"**/*",
|
||||
]),
|
||||
)
|
|
@ -8,3 +8,10 @@ filegroup(
|
|||
"**/*.json",
|
||||
]),
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "sources",
|
||||
srcs = glob([
|
||||
"**/*",
|
||||
]),
|
||||
)
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
filegroup(
|
||||
name = "sources",
|
||||
srcs = glob([
|
||||
"**/*",
|
||||
]),
|
||||
)
|
Loading…
Reference in New Issue