From 4e858b76bd8d65017a60e8d1af9a2b7d40d14229 Mon Sep 17 00:00:00 2001 From: Zihong Zheng Date: Mon, 27 Feb 2023 20:16:55 -0800 Subject: [PATCH] Update Golang to 1.20. Also pin golangci-lint to v1.51.2 to avoid a memory leak issue: https://github.com/golangci/golangci-lint/issues/3565. --- Makefile | 2 +- build/lint.sh | 2 +- go.mod | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 370fa443..8509dec1 100644 --- a/Makefile +++ b/Makefile @@ -60,7 +60,7 @@ ARCH := $(if $(GOARCH),$(GOARCH),$(shell go env GOARCH)) TAG := $(VERSION)__$(OS)_$(ARCH) -GO_VERSION := 1.19.4 +GO_VERSION := 1.20 BUILD_IMAGE := golang:$(GO_VERSION)-alpine BIN_EXTENSION := diff --git a/build/lint.sh b/build/lint.sh index 59bf12b7..3e3b31e7 100755 --- a/build/lint.sh +++ b/build/lint.sh @@ -22,7 +22,7 @@ export CGO_ENABLED=0 export GO111MODULE=on cd tools >/dev/null -go install github.com/golangci/golangci-lint/cmd/golangci-lint +go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2 cd - >/dev/null echo -n "Running golangci-lint: " diff --git a/go.mod b/go.mod index 9bcd5a68..6f6ad033 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/kubernetes-sigs/cluster-proportional-autoscaler -go 1.19 +go 1.20 require ( github.com/davecgh/go-spew v1.1.1