mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
Remove golang.org exception for preferring latest minimal version
This commit is contained in:
parent
6324c137ea
commit
19b636bc84
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user