diff --git a/scripts/fmt.sh b/scripts/fmt.sh index 72112b87..ce7c5622 100755 --- a/scripts/fmt.sh +++ b/scripts/fmt.sh @@ -1,8 +1,14 @@ #!/bin/bash -ex -for d in $(find * -name 'go.mod'); do +version=$1 + +if [ "x$version" = "x" ]; then + version='*' +fi + +for d in $(find $version -name 'go.mod'); do pushd $(dirname $d) go fmt - # go mod tidy + go mod tidy popd done diff --git a/v4/broker/segmentio/go.mod b/v4/broker/segmentio/go.mod index b23469ed..6c49f6b3 100644 --- a/v4/broker/segmentio/go.mod +++ b/v4/broker/segmentio/go.mod @@ -3,8 +3,8 @@ module github.com/go-micro/plugins/v4/broker/segmentio go 1.17 require ( - github.com/go-micro/plugins/v4/broker/kafka v1.0.0 - github.com/go-micro/plugins/v4/codec/segmentio v1.0.0 + github.com/go-micro/plugins/v4/broker/kafka v1.1.0 + github.com/go-micro/plugins/v4/codec/segmentio v1.1.0 github.com/google/uuid v1.2.0 github.com/segmentio/kafka-go v0.4.31 go-micro.dev/v4 v4.8.0 @@ -61,7 +61,6 @@ require ( google.golang.org/protobuf v1.26.0 // indirect gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect - gopkg.in/yaml.v2 v2.4.0 // indirect ) replace ( diff --git a/v4/server/grpc/go.mod b/v4/server/grpc/go.mod index 08580284..2314097d 100644 --- a/v4/server/grpc/go.mod +++ b/v4/server/grpc/go.mod @@ -3,8 +3,8 @@ module github.com/go-micro/plugins/v4/server/grpc go 1.17 require ( - github.com/go-micro/plugins/v4/client/grpc v1.0.0 - github.com/go-micro/plugins/v4/transport/grpc v1.0.0 + github.com/go-micro/plugins/v4/client/grpc v1.1.0 + github.com/go-micro/plugins/v4/transport/grpc v1.1.0 github.com/golang/protobuf v1.5.2 go-micro.dev/v4 v4.8.0 golang.org/x/net v0.0.0-20211020060615-d418f374d309 diff --git a/v4/store/redis/redis.go b/v4/store/redis/redis.go index 33d60a93..99755547 100644 --- a/v4/store/redis/redis.go +++ b/v4/store/redis/redis.go @@ -176,7 +176,6 @@ func (r *rkv) configure() error { if r.Client != nil { r.Client.Close() } - r.Client = redis.NewClient(redisOptions) return nil