From e30a3e6e3ac623f928191a2f83f1ebbf10d4bb6f Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Fri, 11 Oct 2024 14:35:57 +0800 Subject: [PATCH] *: upgrade go1.23 (#1473) Signed-off-by: Weizhen Wang --- .github/workflows/compatibility.yml | 2 +- .github/workflows/integration.yml | 8 ++++---- .github/workflows/test.yml | 8 ++++---- examples/gcworker/go.mod | 2 +- examples/rawkv/go.mod | 2 +- examples/txnkv/1pc_txn/go.mod | 2 +- examples/txnkv/async_commit/go.mod | 2 +- examples/txnkv/delete_range/go.mod | 2 +- examples/txnkv/go.mod | 2 +- examples/txnkv/pessimistic_txn/go.mod | 2 +- examples/txnkv/unsafedestoryrange/go.mod | 2 +- go.mod | 2 +- integration_tests/go.mod | 2 +- internal/unionstore/memdb_norace_test.go | 1 - 14 files changed, 19 insertions(+), 20 deletions(-) diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml index 1cdba8a2a..b6288d3de 100644 --- a/.github/workflows/compatibility.yml +++ b/.github/workflows/compatibility.yml @@ -14,7 +14,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.23.0" + go-version: "1.23.2" - name: Checkout Client-Go uses: actions/checkout@v2 diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index cde5c9d87..d67592871 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.21.0 + go-version: 1.23.2 - name: Test run: go test ./... @@ -32,7 +32,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.21.0 + go-version: 1.23.2 - name: Test run: go test ./... -race @@ -47,7 +47,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.21.0 + go-version: 1.23.2 - name: Fetch PD uses: shrink/actions-docker-extract@v1 @@ -89,7 +89,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.21.0 + go-version: 1.23.2 - name: Fetch PD uses: shrink/actions-docker-extract@v1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1491bd604..a4d16b2dd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.21.6 + go-version: 1.23.2 - name: Test run: go test ./... @@ -28,7 +28,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.21.6 + go-version: 1.23.2 - name: Test with race run: go test -race ./... @@ -42,7 +42,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.21.6 + go-version: 1.23.2 - name: Go generate and check diff run: | @@ -52,5 +52,5 @@ jobs: - name: Lint uses: golangci/golangci-lint-action@v3 with: - version: v1.55.2 + version: v1.61.0 skip-pkg-cache: true diff --git a/examples/gcworker/go.mod b/examples/gcworker/go.mod index 1e241846f..a81da93f2 100644 --- a/examples/gcworker/go.mod +++ b/examples/gcworker/go.mod @@ -1,6 +1,6 @@ module gcworker -go 1.21 +go 1.23 require github.com/tikv/client-go/v2 v2.0.0 diff --git a/examples/rawkv/go.mod b/examples/rawkv/go.mod index d4ca57fdf..ef7c9279a 100644 --- a/examples/rawkv/go.mod +++ b/examples/rawkv/go.mod @@ -1,6 +1,6 @@ module rawkv -go 1.21 +go 1.23 require github.com/tikv/client-go/v2 v2.0.0 diff --git a/examples/txnkv/1pc_txn/go.mod b/examples/txnkv/1pc_txn/go.mod index bec03bfdc..f7dcef09c 100644 --- a/examples/txnkv/1pc_txn/go.mod +++ b/examples/txnkv/1pc_txn/go.mod @@ -1,6 +1,6 @@ module 1pc_txn -go 1.21 +go 1.23 require github.com/tikv/client-go/v2 v2.0.0 diff --git a/examples/txnkv/async_commit/go.mod b/examples/txnkv/async_commit/go.mod index efd12c980..a09833288 100644 --- a/examples/txnkv/async_commit/go.mod +++ b/examples/txnkv/async_commit/go.mod @@ -1,6 +1,6 @@ module async_commit -go 1.21 +go 1.23 require github.com/tikv/client-go/v2 v2.0.0 diff --git a/examples/txnkv/delete_range/go.mod b/examples/txnkv/delete_range/go.mod index 9c175fa79..79b958fe0 100644 --- a/examples/txnkv/delete_range/go.mod +++ b/examples/txnkv/delete_range/go.mod @@ -1,6 +1,6 @@ module delete_range -go 1.21 +go 1.23 require github.com/tikv/client-go/v2 v2.0.0 diff --git a/examples/txnkv/go.mod b/examples/txnkv/go.mod index eb39d047d..19ca706d3 100644 --- a/examples/txnkv/go.mod +++ b/examples/txnkv/go.mod @@ -1,6 +1,6 @@ module txnkv -go 1.21 +go 1.23 require github.com/tikv/client-go/v2 v2.0.0 diff --git a/examples/txnkv/pessimistic_txn/go.mod b/examples/txnkv/pessimistic_txn/go.mod index c5b89848e..dd5e13bd4 100644 --- a/examples/txnkv/pessimistic_txn/go.mod +++ b/examples/txnkv/pessimistic_txn/go.mod @@ -1,6 +1,6 @@ module pessimistic_txn -go 1.21 +go 1.23 require github.com/tikv/client-go/v2 v2.0.0 diff --git a/examples/txnkv/unsafedestoryrange/go.mod b/examples/txnkv/unsafedestoryrange/go.mod index df9df87ff..38911f96f 100644 --- a/examples/txnkv/unsafedestoryrange/go.mod +++ b/examples/txnkv/unsafedestoryrange/go.mod @@ -1,6 +1,6 @@ module unsafedestoryrange -go 1.21 +go 1.23 require github.com/tikv/client-go/v2 v2.0.0 diff --git a/go.mod b/go.mod index d226e9750..fb0263d2b 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/tikv/client-go/v2 -go 1.21 +go 1.23 require ( github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548 diff --git a/integration_tests/go.mod b/integration_tests/go.mod index c5b8f4a68..c587e70bf 100644 --- a/integration_tests/go.mod +++ b/integration_tests/go.mod @@ -1,6 +1,6 @@ module integration_tests -go 1.21 +go 1.23 require ( github.com/ninedraft/israce v0.0.3 diff --git a/internal/unionstore/memdb_norace_test.go b/internal/unionstore/memdb_norace_test.go index 07183715c..c94b0c893 100644 --- a/internal/unionstore/memdb_norace_test.go +++ b/internal/unionstore/memdb_norace_test.go @@ -33,7 +33,6 @@ // limitations under the License. //go:build !race -// +build !race package unionstore