summaryrefslogtreecommitdiff
path: root/hack/verify-vendor.sh
diff options
context:
space:
mode:
authorKevin Wang <wangzefeng@huawei.com>2019-10-17 17:47:10 +0800
committerKevin Wang <wangzefeng@huawei.com>2019-10-17 17:57:58 +0800
commitec9deebc719bcab6ad932c384fe8e7e37d0a8c1b (patch)
treecf1b6e1a744618ab0711c258679099e36b9b1b6b /hack/verify-vendor.sh
parentupdate reporoot/go.mod (diff)
downloadkubeedge-ec9deebc719bcab6ad932c384fe8e7e37d0a8c1b.tar.gz
update-vendor.sh: execute go mod vendor after go mod tidy to ensure dependency correctness.
Diffstat (limited to 'hack/verify-vendor.sh')
-rwxr-xr-xhack/verify-vendor.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/hack/verify-vendor.sh b/hack/verify-vendor.sh
index 1f44855a0..4b469cabe 100755
--- a/hack/verify-vendor.sh
+++ b/hack/verify-vendor.sh
@@ -24,7 +24,8 @@ set -o pipefail
KUBEEDGE_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
function kubeedge::git::check_status() {
- echo $( git status --short 2>/dev/null | wc -l)
+ # check if there's any uncommitted changes on go.mod, go.sum or vendor/
+ echo $( git status --short 2>/dev/null | grep -E "go.mod|go.sum|vendor/" |wc -l)
}
${KUBEEDGE_ROOT}/hack/update-vendor.sh