From 4ed87fee235c113dd75bfc6b55528b6c2872422d Mon Sep 17 00:00:00 2001 From: ChrisLiu Date: Mon, 16 Oct 2023 14:15:41 +0800 Subject: [PATCH] update go version to 1.19 Signed-off-by: ChrisLiu --- .github/workflows/ci.yaml | 6 +++--- go.mod | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index beed37e5..f21fbadb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,8 +10,8 @@ on: env: # Common versions - GO_VERSION: '1.18' - GOLANGCI_VERSION: 'v1.47' + GO_VERSION: '1.19' + GOLANGCI_VERSION: 'v1.51' DOCKER_BUILDX_VERSION: 'v0.4.2' # Common users. We can't run a step 'if secrets.AWS_USR != ""' but we can run @@ -43,7 +43,7 @@ jobs: run: | make generate - name: Lint golang code - uses: golangci/golangci-lint-action@v3.2.0 + uses: golangci/golangci-lint-action@v3.5.0 with: version: ${{ env.GOLANGCI_VERSION }} args: --verbose --timeout=10m diff --git a/go.mod b/go.mod index 10a3e4bb..9d1ad1c4 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/openkruise/kruise-game -go 1.18 +go 1.19 require ( github.com/BurntSushi/toml v0.3.1 @@ -8,6 +8,7 @@ require ( github.com/onsi/ginkgo v1.16.5 github.com/onsi/gomega v1.18.1 github.com/openkruise/kruise-api v1.3.0 + github.com/prometheus/client_golang v1.12.1 google.golang.org/grpc v1.40.0 google.golang.org/protobuf v1.27.1 k8s.io/api v0.24.0 @@ -57,7 +58,6 @@ require ( github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/nxadm/tail v1.4.8 // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/prometheus/client_golang v1.12.1 // indirect github.com/prometheus/client_model v0.2.0 // indirect github.com/prometheus/common v0.32.1 // indirect github.com/prometheus/procfs v0.7.3 // indirect