Improve vendor verification works for each staging repo

This commit is contained in:
Jordan Liggitt 2023-01-10 09:30:47 -05:00
parent 03b78f3a15
commit 94ae3cbc41
No known key found for this signature in database

View File

@ -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