diff options
| author | Kevin Wang <wangzefeng@huawei.com> | 2019-10-17 17:47:10 +0800 |
|---|---|---|
| committer | Kevin Wang <wangzefeng@huawei.com> | 2019-10-17 17:57:58 +0800 |
| commit | ec9deebc719bcab6ad932c384fe8e7e37d0a8c1b (patch) | |
| tree | cf1b6e1a744618ab0711c258679099e36b9b1b6b /hack/verify-vendor.sh | |
| parent | update reporoot/go.mod (diff) | |
| download | kubeedge-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-x | hack/verify-vendor.sh | 3 |
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 |
