Skip to content

Commit b8e392d

Browse files
authored
chore: upgrade go1.25 (#198)
* chore: upgrade go1.25 Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com> * update Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com> * update Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com> * update Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com> * update Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com> --------- Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
1 parent 682637f commit b8e392d

File tree

6 files changed

+146
-646
lines changed

6 files changed

+146
-646
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
release:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/setup-go@v1
11+
- uses: actions/setup-go@v3
1212
with:
13-
go-version: 1.21.x
13+
go-version: 1.25.x
1414
- uses: actions/checkout@v2
1515
with:
1616
fetch-depth: 0

.github/workflows/workflow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ jobs:
55
build:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/setup-go@v1
8+
- uses: actions/setup-go@v3
99
with:
10-
go-version: 1.21.x
10+
go-version: 1.25.x
1111
- uses: actions/checkout@v2
1212

1313
- name: "format"

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
GOARCH := $(if $(GOARCH),$(GOARCH),amd64)
2-
GO=GO15VENDOREXPERIMENT="1" CGO_ENABLED=0 GOARCH=$(GOARCH) GO111MODULE=on go
2+
GO=GOEXPERIMENT=jsonv2 CGO_ENABLED=0 GOARCH=$(GOARCH) GO111MODULE=on go
33

44
PACKAGE_LIST := go list ./...| grep -vE "cmd"
55
PACKAGES := $$($(PACKAGE_LIST))
@@ -25,13 +25,13 @@ fmt:
2525
@git diff --exit-code .
2626

2727
test:
28-
go test ./... -cover $(PACKAGES)
28+
$(GO) test ./... -cover $(PACKAGES)
2929

3030
build: mod
3131
$(GOBUILD) -o ./bin/go-tpc cmd/go-tpc/*
3232

3333
vet:
34-
go vet ./...
34+
$(GO) vet ./...
3535

3636
mod:
3737
@echo "go mod tidy"

go.mod

Lines changed: 41 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,54 @@
11
module github.com/pingcap/go-tpc
22

3-
go 1.21
3+
go 1.25
44

55
require (
6-
github.com/HdrHistogram/hdrhistogram-go v1.0.0
7-
github.com/go-sql-driver/mysql v1.7.1
6+
github.com/HdrHistogram/hdrhistogram-go v1.2.0
7+
github.com/go-sql-driver/mysql v1.9.3
88
github.com/jedib0t/go-pretty v4.3.0+incompatible
9-
github.com/lib/pq v1.10.6
10-
github.com/olekukonko/tablewriter v0.0.5
11-
github.com/prometheus/client_golang v1.15.0
12-
github.com/spf13/cobra v1.0.0
13-
github.com/stretchr/testify v1.8.0
14-
go.uber.org/atomic v1.9.0
15-
go.uber.org/automaxprocs v1.5.3
16-
golang.org/x/sync v0.1.0
9+
github.com/lib/pq v1.10.9
10+
github.com/olekukonko/tablewriter v1.1.2
11+
github.com/prometheus/client_golang v1.23.2
12+
github.com/spf13/cobra v1.10.2
13+
github.com/stretchr/testify v1.11.1
14+
go.uber.org/atomic v1.11.0
15+
go.uber.org/automaxprocs v1.6.0
16+
golang.org/x/sync v0.19.0
1717
)
1818

1919
require (
20-
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef // indirect
20+
filippo.io/edwards25519 v1.1.0 // indirect
2121
github.com/beorn7/perks v1.0.1 // indirect
22-
github.com/cespare/xxhash/v2 v2.2.0 // indirect
22+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
23+
github.com/clipperhouse/displaywidth v0.6.2 // indirect
24+
github.com/clipperhouse/stringish v0.1.1 // indirect
25+
github.com/clipperhouse/uax29/v2 v2.3.0 // indirect
2326
github.com/davecgh/go-spew v1.1.1 // indirect
24-
github.com/go-openapi/errors v0.19.8 // indirect
25-
github.com/go-openapi/strfmt v0.19.11 // indirect
26-
github.com/go-stack/stack v1.8.0 // indirect
27-
github.com/golang/protobuf v1.5.3 // indirect
28-
github.com/inconshreveable/mousetrap v1.0.0 // indirect
29-
github.com/mattn/go-runewidth v0.0.9 // indirect
30-
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
31-
github.com/mitchellh/mapstructure v1.3.3 // indirect
27+
github.com/fatih/color v1.18.0 // indirect
28+
github.com/go-openapi/errors v0.22.5 // indirect
29+
github.com/go-openapi/strfmt v0.25.0 // indirect
30+
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
31+
github.com/google/uuid v1.6.0 // indirect
32+
github.com/inconshreveable/mousetrap v1.1.0 // indirect
33+
github.com/kr/text v0.2.0 // indirect
34+
github.com/mattn/go-colorable v0.1.14 // indirect
35+
github.com/mattn/go-isatty v0.0.20 // indirect
36+
github.com/mattn/go-runewidth v0.0.19 // indirect
37+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
38+
github.com/oklog/ulid v1.3.1 // indirect
39+
github.com/olekukonko/cat v0.0.0-20250911104152-50322a0618f6 // indirect
40+
github.com/olekukonko/errors v1.1.0 // indirect
41+
github.com/olekukonko/ll v0.1.3 // indirect
3242
github.com/pmezard/go-difflib v1.0.0 // indirect
33-
github.com/prometheus/client_model v0.3.0 // indirect
34-
github.com/prometheus/common v0.42.0 // indirect
35-
github.com/prometheus/procfs v0.9.0 // indirect
36-
github.com/spf13/pflag v1.0.5 // indirect
37-
go.mongodb.org/mongo-driver v1.5.4 // indirect
38-
golang.org/x/sys v0.6.0 // indirect
39-
google.golang.org/protobuf v1.30.0 // indirect
43+
github.com/prometheus/client_model v0.6.2 // indirect
44+
github.com/prometheus/common v0.67.4 // indirect
45+
github.com/prometheus/procfs v0.19.2 // indirect
46+
github.com/spf13/pflag v1.0.10 // indirect
47+
go.mongodb.org/mongo-driver v1.17.6 // indirect
48+
go.yaml.in/yaml/v2 v2.4.3 // indirect
49+
golang.org/x/net v0.48.0 // indirect
50+
golang.org/x/sys v0.39.0 // indirect
51+
golang.org/x/text v0.32.0 // indirect
52+
google.golang.org/protobuf v1.36.11 // indirect
4053
gopkg.in/yaml.v3 v3.0.1 // indirect
4154
)

0 commit comments

Comments
 (0)