mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 02:08:13 +00:00 
			
		
		
		
	Remove golang.org exception for preferring latest minimal version
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jordan Liggitt
					Jordan Liggitt