Skip to content

Commit

Permalink
Update min golang version to 1.18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt committed Apr 14, 2022
1 parent f33ca23 commit f97bc82
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hack/lib/golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,7 @@ EOF
local go_version
IFS=" " read -ra go_version <<< "$(GOFLAGS='' go version)"
local minimum_go_version
# TODO(dims): Need to switch this to 1.18 once we update images to newer go version
minimum_go_version=go1.17.0
minimum_go_version=go1.18.1
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[*]}.
Expand Down

0 comments on commit f97bc82

Please sign in to comment.