summaryrefslogtreecommitdiff
path: root/hack/update-vendor.sh
diff options
context:
space:
mode:
authorKevin Wang <wangzefeng@huawei.com>2019-10-18 11:52:27 +0800
committerKevin Wang <wangzefeng@huawei.com>2019-10-18 14:54:56 +0800
commitfa7b85aaaf717cf2d516e60817565649ff1d32f8 (patch)
treec3093b3f1528a08dcf3c9ab5efc8fdbb6f0f817a /hack/update-vendor.sh
parentMerge pull request #1208 from kevin-wangzefeng/update-gomod (diff)
downloadkubeedge-fa7b85aaaf717cf2d516e60817565649ff1d32f8.tar.gz
remove vendor/ in staging repo after update-vendor.sh execution
Diffstat (limited to 'hack/update-vendor.sh')
-rwxr-xr-xhack/update-vendor.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/hack/update-vendor.sh b/hack/update-vendor.sh
index 60dea49ad..97284c8ad 100755
--- a/hack/update-vendor.sh
+++ b/hack/update-vendor.sh
@@ -43,6 +43,10 @@ for repo in $(kubeedge::util::list_staging_repos); do
# We would have to always execute go mod vendor after go mod tidy to ensure correctness.
echo "running 'go mod vendor' for ${repo}"
go mod vendor
+
+ # vendor/ is not supposed to exist in staging repos, remove it.
+ rm -rf vendor/
+
popd
done