chore: Bump golangci-lint to v1.51.1 (#5511)

This commit is contained in:
hongming
2023-02-09 12:08:16 +08:00
committed by GitHub
parent 36bbe34a65
commit decde97a91
8 changed files with 722 additions and 331 deletions

View File

@@ -16,7 +16,7 @@ EOF
local go_version
IFS=" " read -ra go_version <<< "$(go version)"
local minimum_go_version
minimum_go_version=go1.12.1
minimum_go_version=go1.19
if [[ "${minimum_go_version}" != $(echo -e "${minimum_go_version}\n${go_version[2]}" | sort -s -t. -k 1,1 -k 2,2n -k 3,3n | head -n1) && "${go_version[2]}" != "devel" ]]; then
kube::log::usage_from_stdin <<EOF
Detected go version: ${go_version[*]}.