From 74533efd36725c7e6d2f6948e0ab87c4ad8bac67 Mon Sep 17 00:00:00 2001 From: Shelley-BaoYue Date: Mon, 14 Aug 2023 19:49:06 +0800 Subject: update go version to 1.19 Signed-off-by: Shelley-BaoYue --- hack/lib/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hack/lib') diff --git a/hack/lib/install.sh b/hack/lib/install.sh index 4dbe3cd1d..e06675cfc 100755 --- a/hack/lib/install.sh +++ b/hack/lib/install.sh @@ -52,7 +52,7 @@ function check_golangci-lint { GOPATH="${GOPATH:-$(go env GOPATH)}" echo "checking golangci-lint" export PATH=$PATH:$GOPATH/bin - expectedVersion="1.42.0" + expectedVersion="1.51.1" command -v golangci-lint >/dev/null 2>&1 if [[ $? -ne 0 ]]; then install_golangci-lint @@ -69,7 +69,7 @@ function check_golangci-lint { function install_golangci-lint { echo "installing golangci-lint ." - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${GOPATH}/bin v1.42.0 + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${GOPATH}/bin v1.51.1 if [[ $? -ne 0 ]]; then echo "golangci-lint installed failed, exiting." exit 1 -- cgit v1.2.3