summaryrefslogtreecommitdiff
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
parentMerge pull request #1208 from kevin-wangzefeng/update-gomod (diff)
downloadkubeedge-fa7b85aaaf717cf2d516e60817565649ff1d32f8.tar.gz
remove vendor/ in staging repo after update-vendor.sh execution
-rw-r--r--.gitignore1
-rwxr-xr-xhack/update-vendor.sh4
2 files changed, 4 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index c95ea4a51..e96fcc6a3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,5 +13,4 @@ cloud/admission
edge/edgecore
edgesite/edgesite
keadm/keadm
-staging/**/vendor
_output
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