diff --git a/test/e2e/BUILD b/test/e2e/BUILD index 4ccfd780b7c..a5b4a7f4d6f 100644 --- a/test/e2e/BUILD +++ b/test/e2e/BUILD @@ -210,7 +210,10 @@ go_library( ], ) -go_test( +# this is a private library until we can support building the +# test binary +# TODO(mikedanese): fix @io_bazelbuild/rules_go +go_library( name = "go_default_test", srcs = [ "e2e_test.go", @@ -218,6 +221,7 @@ go_test( ], library = "go_default_library", tags = ["automanaged"], + visibility = ["//visibility:private"], deps = [ "//pkg/api:go_default_library", "//pkg/client/clientset_generated/internalclientset:go_default_library", diff --git a/test/e2e/generated/BUILD b/test/e2e/generated/BUILD index 895dd683fbd..a82f3efa2c1 100644 --- a/test/e2e/generated/BUILD +++ b/test/e2e/generated/BUILD @@ -13,8 +13,28 @@ load( go_library( name = "go_default_library", srcs = [ - "bindata.go", "main.go", + ":bindata", + ], +) + +genrule( + name = "bindata", + srcs = [ + "//examples: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", ], - tags = ["automanaged"], )