Skip to content

Commit

Permalink
chore: upgrade go version
Browse files Browse the repository at this point in the history
  • Loading branch information
DCjanus committed Jan 12, 2025
1 parent 9f0e914 commit 7aad4a6
Show file tree
Hide file tree
Showing 32 changed files with 85 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
strategy:
matrix:
go: [ 1.20.x, 1.21.x, 1.22.x ]
go: [ 1.21.x, 1.22.x ]
name: build & test
runs-on: ubuntu-latest
services:
Expand Down
2 changes: 1 addition & 1 deletion cmd/kratos/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/cmd/kratos/v2

go 1.19
go 1.20

require (
github.com/AlecAivazis/survey/v2 v2.3.7
Expand Down
2 changes: 1 addition & 1 deletion cmd/kratos/internal/base/mod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestModulePath(t *testing.T) {

mod := `module github.com/go-kratos/kratos/v2
go 1.19`
go 1.20`
_, err = f.WriteString(mod)
if err != nil {
t.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion cmd/protoc-gen-go-errors/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/cmd/protoc-gen-go-errors/v2

go 1.19
go 1.20

require (
golang.org/x/text v0.3.8
Expand Down
2 changes: 1 addition & 1 deletion cmd/protoc-gen-go-http/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/go-kratos/kratos/cmd/protoc-gen-go-http/v2

go 1.19
go 1.20

require (
google.golang.org/genproto v0.0.0-20220519153652-3a47de7e79bd
Expand Down
4 changes: 3 additions & 1 deletion contrib/config/apollo/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/config/apollo/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/apolloconfig/agollo/v4 v4.3.1
Expand Down
4 changes: 3 additions & 1 deletion contrib/config/consul/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/config/consul/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
Expand Down
4 changes: 3 additions & 1 deletion contrib/config/etcd/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/config/etcd/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
Expand Down
4 changes: 3 additions & 1 deletion contrib/config/kubernetes/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/config/kubernetes/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
Expand Down
4 changes: 3 additions & 1 deletion contrib/config/nacos/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/config/nacos/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
Expand Down
4 changes: 3 additions & 1 deletion contrib/config/polaris/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/config/polaris/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
Expand Down
4 changes: 3 additions & 1 deletion contrib/encoding/msgpack/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/encoding/msgpack/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
Expand Down
4 changes: 3 additions & 1 deletion contrib/errortracker/sentry/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/errortracker/sentry/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/getsentry/sentry-go v0.25.0
Expand Down
4 changes: 3 additions & 1 deletion contrib/log/aliyun/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/log/aliyun/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/aliyun/aliyun-log-go-sdk v0.1.75
Expand Down
4 changes: 3 additions & 1 deletion contrib/log/fluent/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/log/fluent/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/fluent/fluent-logger-golang v1.9.0
Expand Down
4 changes: 3 additions & 1 deletion contrib/log/logrus/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/log/logrus/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
Expand Down
4 changes: 3 additions & 1 deletion contrib/log/tencent/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/log/tencent/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
Expand Down
4 changes: 3 additions & 1 deletion contrib/log/zap/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/log/zap/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
Expand Down
4 changes: 3 additions & 1 deletion contrib/log/zerolog/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/log/zerolog/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
Expand Down
4 changes: 3 additions & 1 deletion contrib/opensergo/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/opensergo/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
Expand Down
4 changes: 3 additions & 1 deletion contrib/polaris/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/polaris/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/aegis v0.2.0
Expand Down
4 changes: 3 additions & 1 deletion contrib/registry/consul/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/registry/consul/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
Expand Down
4 changes: 3 additions & 1 deletion contrib/registry/discovery/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/registry/discovery/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
Expand Down
4 changes: 3 additions & 1 deletion contrib/registry/etcd/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/registry/etcd/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
Expand Down
4 changes: 3 additions & 1 deletion contrib/registry/eureka/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/registry/eureka/v2

go 1.19
go 1.21

toolchain go1.23.4

require github.com/go-kratos/kratos/v2 v2.8.3

Expand Down
4 changes: 3 additions & 1 deletion contrib/registry/kubernetes/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/registry/kubernetes/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
Expand Down
4 changes: 3 additions & 1 deletion contrib/registry/nacos/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/registry/nacos/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
Expand Down
4 changes: 3 additions & 1 deletion contrib/registry/polaris/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/registry/polaris/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
Expand Down
4 changes: 3 additions & 1 deletion contrib/registry/servicecomb/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/registry/servicecomb/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-chassis/cari v0.6.0
Expand Down
4 changes: 3 additions & 1 deletion contrib/registry/zookeeper/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/go-kratos/kratos/contrib/registry/zookeeper/v2

go 1.19
go 1.21

toolchain go1.23.4

require (
github.com/go-kratos/kratos/v2 v2.8.3
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/go-kratos/kratos/v2

go 1.20
go 1.21

require (
dario.cat/mergo v1.0.0
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk=
dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
github.com/census-instrumentation/opencensus-proto v0.4.1 h1:iKLQ0xPNFxR/2hzXZMrBo8f1j86j5WHzznCCQxV/b8g=
github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw=
github.com/cncf/xds/go v0.0.0-20231109132714-523115ebc101 h1:7To3pQ+pZo0i3dsWEbinPNFs5gPSBOsJtx3wTT94VBY=
github.com/cncf/xds/go v0.0.0-20231109132714-523115ebc101/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/envoyproxy/go-control-plane v0.11.2-0.20230627204322-7d0032219fcb h1:kxNVXsNro/lpR5WD+P1FI/yUHn2G03Glber3k8cQL2Y=
github.com/envoyproxy/go-control-plane v0.11.2-0.20230627204322-7d0032219fcb/go.mod h1:GxGqnjWzl1Gz8WfAfMJSfhvsi4EPZayRb25nLHDWXyA=
github.com/envoyproxy/protoc-gen-validate v1.0.2 h1:QkIBuU5k+x7/QXPvPPnWXWlCdaBFApVqftFV6k087DA=
github.com/envoyproxy/protoc-gen-validate v1.0.2/go.mod h1:GpiZQP3dDbg4JouG/NNS7QWXpgx6x8QiMKdmN72jogE=
github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=
github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw=
github.com/go-kratos/aegis v0.2.0 h1:dObzCDWn3XVjUkgxyBp6ZeWtx/do0DPZ7LY3yNSJLUQ=
Expand All @@ -31,6 +34,7 @@ github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4=
github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
Expand Down

0 comments on commit 7aad4a6

Please sign in to comment.