From ea285dbcd729cc90e33bcfc5d5f53d58eb3b5d6a Mon Sep 17 00:00:00 2001 From: Viacheslav Sarzhan Date: Tue, 3 Dec 2024 11:40:32 +0200 Subject: [PATCH] CLOUD-727 bump go ver to 1.23 --- .github/workflows/reviewdog.yml | 4 ++-- .github/workflows/test.yml | 2 +- Jenkinsfile | 4 ++-- build/Dockerfile | 2 +- go.mod | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index b1c04c7136..d593823359 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@v4.1.1 - uses: actions/setup-go@v5 with: - go-version: '^1.22' + go-version: '^1.23' - run: go install -v github.com/incu6us/goimports-reviser/v3@latest - run: $(go env GOPATH)/bin/goimports-reviser -imports-order "std,general,company,project" -company-prefixes "github.com/percona" ./... - uses: reviewdog/action-suggester@v1 @@ -44,7 +44,7 @@ jobs: - uses: actions/checkout@v4.1.1 - uses: actions/setup-go@v5 with: - go-version: '^1.22' + go-version: '^1.23' - run: go install mvdan.cc/sh/v3/cmd/shfmt@latest - run: $(go env GOPATH)/bin/shfmt -f . | grep -v 'vendor' | xargs $(go env GOPATH)/bin/shfmt -bn -ci -s -w - name: suggester / shfmt diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c6da54e9d4..53ca0b99cd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: steps: - uses: actions/setup-go@v5 with: - go-version: '^1.22' + go-version: '^1.23' - uses: actions/checkout@v4.1.1 - name: run tests run: make test diff --git a/Jenkinsfile b/Jenkinsfile index 416728663d..c1d9a01bf5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -347,7 +347,7 @@ EOF -v $WORKSPACE/src/github.com/percona/percona-server-mongodb-operator:/go/src/github.com/percona/percona-server-mongodb-operator \ -w /go/src/github.com/percona/percona-server-mongodb-operator \ -e GOFLAGS='-buildvcs=false' \ - golang:1.22 sh -c ' + golang:1.23 sh -c ' go install github.com/google/go-licenses@v1.6.0; /go/bin/go-licenses csv github.com/percona/percona-server-mongodb-operator/cmd/manager \ | cut -d , -f 3 \ @@ -375,7 +375,7 @@ EOF -v $WORKSPACE/src/github.com/percona/percona-server-mongodb-operator:/go/src/github.com/percona/percona-server-mongodb-operator \ -w /go/src/github.com/percona/percona-server-mongodb-operator \ -e GOFLAGS='-buildvcs=false' \ - golang:1.22 sh -c 'go build -v -o percona-server-mongodb-operator github.com/percona/percona-server-mongodb-operator/cmd/manager' + golang:1.23 sh -c 'go build -v -o percona-server-mongodb-operator github.com/percona/percona-server-mongodb-operator/cmd/manager' " ''' diff --git a/build/Dockerfile b/build/Dockerfile index bbeac50846..e8d38b55ec 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=${BUILDPLATFORM} golang:1.22 AS go_builder +FROM --platform=${BUILDPLATFORM} golang:1.23 AS go_builder WORKDIR /go/src/github.com/percona/percona-server-mongodb-operator COPY go.mod go.sum ./ diff --git a/go.mod b/go.mod index dc0ff90e7e..ef6fcb54b5 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/percona/percona-server-mongodb-operator -go 1.22.6 +go 1.23.3 require ( github.com/Percona-Lab/percona-version-service v0.0.0-20230216094301-f9489c81b52a