Skip to content

Commit

Permalink
*: upgrade go1.23 (#1473)
Browse files Browse the repository at this point in the history
 

Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei authored Oct 11, 2024
1 parent bce97bb commit e30a3e6
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand All @@ -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 ./...
Expand All @@ -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: |
Expand All @@ -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
2 changes: 1 addition & 1 deletion examples/gcworker/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module gcworker

go 1.21
go 1.23

require github.com/tikv/client-go/v2 v2.0.0

Expand Down
2 changes: 1 addition & 1 deletion examples/rawkv/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module rawkv

go 1.21
go 1.23

require github.com/tikv/client-go/v2 v2.0.0

Expand Down
2 changes: 1 addition & 1 deletion examples/txnkv/1pc_txn/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module 1pc_txn

go 1.21
go 1.23

require github.com/tikv/client-go/v2 v2.0.0

Expand Down
2 changes: 1 addition & 1 deletion examples/txnkv/async_commit/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module async_commit

go 1.21
go 1.23

require github.com/tikv/client-go/v2 v2.0.0

Expand Down
2 changes: 1 addition & 1 deletion examples/txnkv/delete_range/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module delete_range

go 1.21
go 1.23

require github.com/tikv/client-go/v2 v2.0.0

Expand Down
2 changes: 1 addition & 1 deletion examples/txnkv/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module txnkv

go 1.21
go 1.23

require github.com/tikv/client-go/v2 v2.0.0

Expand Down
2 changes: 1 addition & 1 deletion examples/txnkv/pessimistic_txn/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module pessimistic_txn

go 1.21
go 1.23

require github.com/tikv/client-go/v2 v2.0.0

Expand Down
2 changes: 1 addition & 1 deletion examples/txnkv/unsafedestoryrange/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module unsafedestoryrange

go 1.21
go 1.23

require github.com/tikv/client-go/v2 v2.0.0

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module integration_tests

go 1.21
go 1.23

require (
github.com/ninedraft/israce v0.0.3
Expand Down
1 change: 0 additions & 1 deletion internal/unionstore/memdb_norace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
// limitations under the License.

//go:build !race
// +build !race

package unionstore

Expand Down

0 comments on commit e30a3e6

Please sign in to comment.