From 7015f191efffd4c85b70a9db0d1c10aa857bb028 Mon Sep 17 00:00:00 2001 From: Jeff Grafton Date: Wed, 21 Mar 2018 16:28:06 -0700 Subject: [PATCH] Remove all upstream BUILD, BUILD.bazel, and WORKSPACE files from vendor/ --- hack/godep-save.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hack/godep-save.sh b/hack/godep-save.sh index a7146f13bda..2457438766f 100755 --- a/hack/godep-save.sh +++ b/hack/godep-save.sh @@ -81,6 +81,11 @@ done rm -rf vendor/github.com/docker/docker/project/ kube::log::status "Updating BUILD files" +# Assume that anything imported through godep doesn't need Bazel to build. +# Prune out any Bazel build files, since these can break the build due to +# missing dependencies that aren't included by godep. +find vendor/ -type f \( -name BUILD -o -name BUILD.bazel -o -name WORKSPACE \) \ + -exec rm -f {} \; hack/update-bazel.sh >/dev/null kube::log::status "Updating LICENSES file"