From 8743f3e50c4039679de72a365c9d5246dfda3bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=85=E5=AD=90?= Date: Mon, 10 Oct 2022 13:50:04 +0800 Subject: [PATCH] deps: upgrade kratos version v2.5.1 (#2431) * deps: upgrade kratos version v2.5.1 * fix goimport --- cmd/kratos/version.go | 2 +- cmd/protoc-gen-go-errors/version.go | 2 +- cmd/protoc-gen-go-http/version.go | 2 +- contrib/encoding/msgpack/go.mod | 2 +- contrib/log/aliyun/go.mod | 2 +- contrib/log/fluent/go.mod | 2 +- contrib/log/logrus/go.mod | 2 +- contrib/log/tencent/go.mod | 2 +- contrib/log/zap/go.mod | 2 +- contrib/metrics/datadog/go.mod | 2 +- contrib/metrics/prometheus/go.mod | 2 +- contrib/opensergo/go.mod | 2 +- contrib/registry/consul/go.mod | 2 +- contrib/registry/discovery/go.mod | 2 +- contrib/registry/etcd/go.mod | 2 +- contrib/registry/kubernetes/go.mod | 2 +- contrib/registry/nacos/go.mod | 2 +- contrib/registry/polaris/go.mod | 2 +- contrib/registry/zookeeper/go.mod | 2 +- transport/http/codec.go | 1 + version.go | 2 +- 21 files changed, 21 insertions(+), 20 deletions(-) diff --git a/cmd/kratos/version.go b/cmd/kratos/version.go index 9d205cbc9..a616f7153 100644 --- a/cmd/kratos/version.go +++ b/cmd/kratos/version.go @@ -1,4 +1,4 @@ package main // release is the current kratos tool version. -const release = "v2.5.0" +const release = "v2.5.1" diff --git a/cmd/protoc-gen-go-errors/version.go b/cmd/protoc-gen-go-errors/version.go index 71fced3ef..8061323f7 100644 --- a/cmd/protoc-gen-go-errors/version.go +++ b/cmd/protoc-gen-go-errors/version.go @@ -1,4 +1,4 @@ package main // release is the current protoc-gen-go-errors version. -const release = "v2.5.0" +const release = "v2.5.1" diff --git a/cmd/protoc-gen-go-http/version.go b/cmd/protoc-gen-go-http/version.go index 065e7dd52..25b73c2fe 100644 --- a/cmd/protoc-gen-go-http/version.go +++ b/cmd/protoc-gen-go-http/version.go @@ -1,4 +1,4 @@ package main // release is the current protoc-gen-go-http version. -const release = "v2.5.0" +const release = "v2.5.1" diff --git a/contrib/encoding/msgpack/go.mod b/contrib/encoding/msgpack/go.mod index 5d78c21b9..5b6a1f7e9 100644 --- a/contrib/encoding/msgpack/go.mod +++ b/contrib/encoding/msgpack/go.mod @@ -3,7 +3,7 @@ module github.com/go-kratos/kratos/contrib/encoding/msgpack/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.5.0 + github.com/go-kratos/kratos/v2 v2.5.1 github.com/vmihailenco/msgpack/v5 v5.3.5 ) diff --git a/contrib/log/aliyun/go.mod b/contrib/log/aliyun/go.mod index efe1b8273..73edfb732 100644 --- a/contrib/log/aliyun/go.mod +++ b/contrib/log/aliyun/go.mod @@ -4,7 +4,7 @@ go 1.16 require ( github.com/aliyun/aliyun-log-go-sdk v0.1.37 - github.com/go-kratos/kratos/v2 v2.5.0 + github.com/go-kratos/kratos/v2 v2.5.1 google.golang.org/protobuf v1.28.1 ) diff --git a/contrib/log/fluent/go.mod b/contrib/log/fluent/go.mod index b316425a7..8b3a4efcd 100644 --- a/contrib/log/fluent/go.mod +++ b/contrib/log/fluent/go.mod @@ -5,7 +5,7 @@ go 1.16 require ( github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect github.com/fluent/fluent-logger-golang v1.9.0 - github.com/go-kratos/kratos/v2 v2.5.0 + github.com/go-kratos/kratos/v2 v2.5.1 github.com/kr/pretty v0.3.0 // indirect github.com/tinylib/msgp v1.1.6 // indirect ) diff --git a/contrib/log/logrus/go.mod b/contrib/log/logrus/go.mod index c41e4ecc7..5d923e1cf 100644 --- a/contrib/log/logrus/go.mod +++ b/contrib/log/logrus/go.mod @@ -3,7 +3,7 @@ module github.com/go-kratos/kratos/contrib/log/logrus/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.5.0 + github.com/go-kratos/kratos/v2 v2.5.1 github.com/sirupsen/logrus v1.8.1 ) diff --git a/contrib/log/tencent/go.mod b/contrib/log/tencent/go.mod index 2d3fa7dc9..d5a758f03 100644 --- a/contrib/log/tencent/go.mod +++ b/contrib/log/tencent/go.mod @@ -3,7 +3,7 @@ module github.com/go-kratos/kratos/contrib/log/tencent/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.5.0 + github.com/go-kratos/kratos/v2 v2.5.1 github.com/tencentcloud/tencentcloud-cls-sdk-go v1.0.2 google.golang.org/protobuf v1.28.0 ) diff --git a/contrib/log/zap/go.mod b/contrib/log/zap/go.mod index 0a8e74f60..8f8d5a9a8 100644 --- a/contrib/log/zap/go.mod +++ b/contrib/log/zap/go.mod @@ -3,7 +3,7 @@ module github.com/go-kratos/kratos/contrib/log/zap/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.5.0 + github.com/go-kratos/kratos/v2 v2.5.1 go.uber.org/zap v1.23.0 ) diff --git a/contrib/metrics/datadog/go.mod b/contrib/metrics/datadog/go.mod index 206ccf4e6..78f500398 100644 --- a/contrib/metrics/datadog/go.mod +++ b/contrib/metrics/datadog/go.mod @@ -5,7 +5,7 @@ go 1.16 require ( github.com/DataDog/datadog-go v4.8.3+incompatible github.com/Microsoft/go-winio v0.5.2 // indirect - github.com/go-kratos/kratos/v2 v2.5.0 + github.com/go-kratos/kratos/v2 v2.5.1 ) replace github.com/go-kratos/kratos/v2 => ../../../ diff --git a/contrib/metrics/prometheus/go.mod b/contrib/metrics/prometheus/go.mod index c6a1b5df2..462f13f17 100644 --- a/contrib/metrics/prometheus/go.mod +++ b/contrib/metrics/prometheus/go.mod @@ -3,7 +3,7 @@ module github.com/go-kratos/kratos/contrib/metrics/prometheus/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.5.0 + github.com/go-kratos/kratos/v2 v2.5.1 github.com/prometheus/client_golang v1.12.2 github.com/prometheus/common v0.37.0 ) diff --git a/contrib/opensergo/go.mod b/contrib/opensergo/go.mod index 0b920de4b..1c96a2713 100644 --- a/contrib/opensergo/go.mod +++ b/contrib/opensergo/go.mod @@ -3,7 +3,7 @@ module github.com/go-kratos/kratos/contrib/opensergo/v2 go 1.17 require ( - github.com/go-kratos/kratos/v2 v2.5.0 + github.com/go-kratos/kratos/v2 v2.5.1 github.com/opensergo/opensergo-go v0.0.0-20220331070310-e5b01fee4d1c golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2 google.golang.org/genproto v0.0.0-20220519153652-3a47de7e79bd diff --git a/contrib/registry/consul/go.mod b/contrib/registry/consul/go.mod index 5a0965b44..e78723c70 100644 --- a/contrib/registry/consul/go.mod +++ b/contrib/registry/consul/go.mod @@ -3,7 +3,7 @@ module github.com/go-kratos/kratos/contrib/registry/consul/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.5.0 + github.com/go-kratos/kratos/v2 v2.5.1 github.com/hashicorp/consul/api v1.14.0 ) diff --git a/contrib/registry/discovery/go.mod b/contrib/registry/discovery/go.mod index 407af47a7..40b61cb01 100644 --- a/contrib/registry/discovery/go.mod +++ b/contrib/registry/discovery/go.mod @@ -3,7 +3,7 @@ module github.com/go-kratos/kratos/contrib/registry/discovery/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.5.0 + github.com/go-kratos/kratos/v2 v2.5.1 github.com/go-resty/resty/v2 v2.7.0 github.com/pkg/errors v0.9.1 ) diff --git a/contrib/registry/etcd/go.mod b/contrib/registry/etcd/go.mod index 952e8a55a..1976385e1 100644 --- a/contrib/registry/etcd/go.mod +++ b/contrib/registry/etcd/go.mod @@ -3,7 +3,7 @@ module github.com/go-kratos/kratos/contrib/registry/etcd/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.5.0 + github.com/go-kratos/kratos/v2 v2.5.1 go.etcd.io/etcd/client/v3 v3.5.4 google.golang.org/grpc v1.46.2 ) diff --git a/contrib/registry/kubernetes/go.mod b/contrib/registry/kubernetes/go.mod index cad07df0d..3f20affb1 100644 --- a/contrib/registry/kubernetes/go.mod +++ b/contrib/registry/kubernetes/go.mod @@ -3,7 +3,7 @@ module github.com/go-kratos/kratos/contrib/registry/kubernetes/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.5.0 + github.com/go-kratos/kratos/v2 v2.5.1 github.com/json-iterator/go v1.1.12 k8s.io/api v0.24.3 k8s.io/apimachinery v0.24.3 diff --git a/contrib/registry/nacos/go.mod b/contrib/registry/nacos/go.mod index bdfd037e3..d6048dfc0 100644 --- a/contrib/registry/nacos/go.mod +++ b/contrib/registry/nacos/go.mod @@ -3,7 +3,7 @@ module github.com/go-kratos/kratos/contrib/registry/nacos/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.5.0 + github.com/go-kratos/kratos/v2 v2.5.1 github.com/nacos-group/nacos-sdk-go v1.0.9 ) diff --git a/contrib/registry/polaris/go.mod b/contrib/registry/polaris/go.mod index 2789a9916..306fe9275 100644 --- a/contrib/registry/polaris/go.mod +++ b/contrib/registry/polaris/go.mod @@ -3,7 +3,7 @@ module github.com/go-kratos/kratos/contrib/registry/polaris/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.5.0 + github.com/go-kratos/kratos/v2 v2.5.1 github.com/polarismesh/polaris-go v1.1.0 ) diff --git a/contrib/registry/zookeeper/go.mod b/contrib/registry/zookeeper/go.mod index a149d20aa..09c35a1b9 100644 --- a/contrib/registry/zookeeper/go.mod +++ b/contrib/registry/zookeeper/go.mod @@ -3,7 +3,7 @@ module github.com/go-kratos/kratos/contrib/registry/zookeeper/v2 go 1.16 require ( - github.com/go-kratos/kratos/v2 v2.5.0 + github.com/go-kratos/kratos/v2 v2.5.1 github.com/go-zookeeper/zk v1.0.3 golang.org/x/sync v0.0.0-20220513210516-0976fa681c29 ) diff --git a/transport/http/codec.go b/transport/http/codec.go index 896683659..da1b13e06 100644 --- a/transport/http/codec.go +++ b/transport/http/codec.go @@ -10,6 +10,7 @@ import ( "github.com/go-kratos/kratos/v2/errors" "github.com/go-kratos/kratos/v2/internal/httputil" "github.com/go-kratos/kratos/v2/transport/http/binding" + "github.com/gorilla/mux" ) diff --git a/version.go b/version.go index d0afa6033..2c8d6f462 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package kratos // Release is the current kratos version. -const Release = "v2.5.0" +const Release = "v2.5.1"