Skip to content

Commit

Permalink
Merge pull request kubernetes#93603 from liggitt/lint
Browse files Browse the repository at this point in the history
Remove golang.org exception for preferring latest minimal version
  • Loading branch information
k8s-ci-robot authored Aug 2, 2020
2 parents cf6a086 + 19b636b commit 353903b
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions hack/lint-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand Down

0 comments on commit 353903b

Please sign in to comment.