From 57c266b3b9138b6e3f7701ab033db1c89c48bede Mon Sep 17 00:00:00 2001 From: csuzhangxc Date: Fri, 20 Sep 2024 02:54:03 +0000 Subject: [PATCH] bump Golang to v1.23.1 --- .github/workflows/ci.yaml | 9 +++++---- Dockerfile | 2 +- client/go.mod | 2 +- go.mod | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 38ddc347..f95c077e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,13 +27,14 @@ jobs: - e2e-v1.27 - e2e-v1.28 steps: - - name: Set up Go - uses: actions/setup-go@v2 + - name: setup go + uses: actions/setup-go@v5 with: - go-version: 1.22.5 + go-version-file: ./go.mod + cache-dependency-path: "**/*.sum" id: go - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 path: go/src/github.com/${{ github.repository }} diff --git a/Dockerfile b/Dockerfile index 8e853c55..02e37088 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.22.5 as builder +FROM golang:1.23.1 as builder WORKDIR /go/src/github.com/pingcap/advanced-statefulset ADD . . RUN make cmd/controller-manager diff --git a/client/go.mod b/client/go.mod index c96aaab4..fc1f44f7 100644 --- a/client/go.mod +++ b/client/go.mod @@ -1,6 +1,6 @@ module github.com/pingcap/advanced-statefulset/client -go 1.21 +go 1.23.1 require ( github.com/docker/distribution v2.7.1+incompatible diff --git a/go.mod b/go.mod index 7a26dc81..3cd253e3 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/pingcap/advanced-statefulset -go 1.22 +go 1.23.1 require ( github.com/davecgh/go-spew v1.1.1