have multiple BUILD files in vendor/

pull/6/head
Mike Danese 2017-01-31 16:41:54 -08:00
parent ce860e187c
commit 5b12a2abb9
4 changed files with 11 additions and 8 deletions

View File

@ -10,7 +10,10 @@
"./examples"
],
"SkippedPaths": [
"^_.*"
"^_.*",
"^staging.*",
"_vendor"
],
"AddSourcesRules": true
"AddSourcesRules": true,
"VendorMultipleBuildFiles": true
}

View File

@ -500,7 +500,7 @@ bazel-build:
@echo "$$BAZEL_BUILD_HELP_INFO"
else
bazel-build:
bazel build //cmd/... //pkg/... //federation/... //plugin/... //third_party/... //examples/... //test/...
bazel build //cmd/... //pkg/... //federation/... //plugin/... //third_party/... //examples/... //test/... //vendor/k8s.io/...
endif
@ -515,7 +515,7 @@ bazel-test:
@echo "$$BAZEL_TEST_HELP_INFO"
else
bazel-test:
bazel test --flaky_test_attempts=3 //cmd/... //pkg/... //federation/... //plugin/... //third_party/... //hack/... //hack:verify-all
bazel test --flaky_test_attempts=3 //cmd/... //pkg/... //federation/... //plugin/... //third_party/... //hack/... //hack:verify-all //vendor/k8s.io/...
endif
ifeq ($(PRINT_HELP),y)

View File

@ -87,7 +87,7 @@ TEST_BINARY_TARGETS = [
"//examples/k8petstore/web-server/src",
"//federation/cmd/genfeddocs",
"//test/e2e:e2e.test",
"//vendor:github.com/onsi/ginkgo/ginkgo_bin",
"//vendor/github.com/onsi/ginkgo/ginkgo:ginkgo",
"//cmd/kubemark", # TODO: server platforms only
"//test/e2e_node:e2e_node.test", # TODO: server platforms only
]

View File

@ -15,7 +15,7 @@ go_library(
":bindata",
],
deps = [
"//vendor:github.com/golang/glog",
"//vendor/github.com/golang/glog:go_default_library",
],
)
@ -29,14 +29,14 @@ genrule(
],
outs = ["bindata.go"],
cmd = """
$(location //vendor:github.com/jteeuwen/go-bindata/go-bindata_bin) \
$(location //vendor/github.com/jteeuwen/go-bindata/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_bin",
"//vendor/github.com/jteeuwen/go-bindata/go-bindata",
],
)