Skip to content

Commit

Permalink
have multiple BUILD files in vendor/
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedanese committed Apr 14, 2017
1 parent ce860e1 commit 5b12a2a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
7 changes: 5 additions & 2 deletions .gazelcfg.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"./examples"
],
"SkippedPaths": [
"^_.*"
"^_.*",
"^staging.*",
"_vendor"
],
"AddSourcesRules": true
"AddSourcesRules": true,
"VendorMultipleBuildFiles": true
}
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion build/release-tars/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/generated/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ go_library(
":bindata",
],
deps = [
"//vendor:github.com/golang/glog",
"//vendor/github.com/golang/glog:go_default_library",
],
)

Expand All @@ -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",
],
)

Expand Down

0 comments on commit 5b12a2a

Please sign in to comment.