Skip to content

Commit

Permalink
Merge pull request kubernetes#114960 from liggitt/automated-cherry-pi…
Browse files Browse the repository at this point in the history
…ck-of-#114952-upstream-release-1.26

Automated cherry pick of kubernetes#114952: Improve vendor verification works for each staging repo
  • Loading branch information
k8s-ci-robot authored Jan 11, 2023
2 parents 0854df1 + 424b877 commit e8d0c3b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions hack/verify-vendor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,17 @@ if [[ ${ret} -gt 0 ]]; then
exit ${ret}
fi

# Ensure we can tidy every repo using only its recorded versions
for repo in $(kube::util::list_staging_repos); do
pushd "${_kubetmp}/staging/src/k8s.io/${repo}" >/dev/null 2>&1
echo "Tidying k8s.io/${repo}..."
GODEBUG=gocacheverify=1 go mod tidy
popd >/dev/null 2>&1
done
pushd "${_kubetmp}" >/dev/null 2>&1
echo "Tidying k8s.io/kubernetes..."
GODEBUG=gocacheverify=1 go mod tidy
popd >/dev/null 2>&1

echo "Vendor Verified."
# ex: ts=2 sw=2 et filetype=sh

0 comments on commit e8d0c3b

Please sign in to comment.