Remove golang.org exception for preferring latest minimal version

This commit is contained in:
Jordan Liggitt 2020-07-31 10:57:07 -04:00
parent 6324c137ea
commit 19b636bc84

View File

@ -38,26 +38,6 @@ fi
kube::golang::verify_go_version
kube::util::require-jq
case "${1:-}" in
"--all")
echo "Checking all dependencies"
filter=''
;;
"-a")
echo "Checking all dependencies"
filter=''
;;
"")
# by default, skip checking golang.org/x/... dependencies... we pin to levels that match our go version for those
echo "Skipping golang.org/x/... dependencies, pass --all to include"
filter='select(.Path | startswith("golang.org/x/") | not) |'
;;
*)
kube::log::error "Unrecognized arg: ${1}"
exit 1
;;
esac
# let us log all errors before we exit
rc=0
@ -78,7 +58,6 @@ done
outdated=$(go list -m -json all | jq -r "
select(.Replace.Version != null) |
select(.Version != .Replace.Version) |
${filter}
select(.Path) |
\"\(.Path)
pinned: \(.Replace.Version)