Skip to content

Commit

Permalink
Merge pull request #2377 from redis/release/v9.0.1
Browse files Browse the repository at this point in the history
Release/v9.0.1
  • Loading branch information
vmihailenco committed Jan 30, 2023
2 parents ce04442 + 515043a commit 7ee1282
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 42 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [9.0.1](https://github.com/redis/go-redis/compare/v9.0.0...v9.0.1) (2023-01-30)



## v9 2023-01-30

### Added
Expand Down
2 changes: 1 addition & 1 deletion example/del-keys-without-ttl/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.14
replace github.com/redis/go-redis/v9 => ../..

require (
github.com/redis/go-redis/v9 v9.0.0
github.com/redis/go-redis/v9 v9.0.1
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.9.0 // indirect
go.uber.org/zap v1.24.0
Expand Down
2 changes: 1 addition & 1 deletion example/hll/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ go 1.14

replace github.com/redis/go-redis/v9 => ../..

require github.com/redis/go-redis/v9 v9.0.0
require github.com/redis/go-redis/v9 v9.0.1
2 changes: 1 addition & 1 deletion example/lua-scripting/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ go 1.14

replace github.com/redis/go-redis/v9 => ../..

require github.com/redis/go-redis/v9 v9.0.0
require github.com/redis/go-redis/v9 v9.0.1
4 changes: 2 additions & 2 deletions example/otel/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ replace github.com/redis/go-redis/extra/redisotel/v9 => ../../extra/redisotel
replace github.com/redis/go-redis/extra/rediscmd/v9 => ../../extra/rediscmd

require (
github.com/redis/go-redis/extra/redisotel/v9 v9.0.0
github.com/redis/go-redis/v9 v9.0.0
github.com/redis/go-redis/extra/redisotel/v9 v9.0.1
github.com/redis/go-redis/v9 v9.0.1
github.com/uptrace/uptrace-go v1.11.8
go.opentelemetry.io/otel v1.11.2
google.golang.org/genproto v0.0.0-20230127162408-596548ed4efa // indirect
Expand Down
2 changes: 1 addition & 1 deletion example/redis-bloom/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ go 1.14

replace github.com/redis/go-redis/v9 => ../..

require github.com/redis/go-redis/v9 v9.0.0
require github.com/redis/go-redis/v9 v9.0.1
2 changes: 1 addition & 1 deletion example/scan-struct/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ replace github.com/redis/go-redis/v9 => ../..

require (
github.com/davecgh/go-spew v1.1.1
github.com/redis/go-redis/v9 v9.0.0
github.com/redis/go-redis/v9 v9.0.1
)
4 changes: 2 additions & 2 deletions extra/rediscensus/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ replace github.com/redis/go-redis/extra/rediscmd/v9 => ../rediscmd

require (
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/redis/go-redis/extra/rediscmd/v9 v9.0.0
github.com/redis/go-redis/v9 v9.0.0
github.com/redis/go-redis/extra/rediscmd/v9 v9.0.1
github.com/redis/go-redis/v9 v9.0.1
go.opencensus.io v0.24.0
)
2 changes: 1 addition & 1 deletion extra/rediscmd/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ replace github.com/redis/go-redis/v9 => ../..
require (
github.com/bsm/ginkgo/v2 v2.5.0
github.com/bsm/gomega v1.20.0
github.com/redis/go-redis/v9 v9.0.0
github.com/redis/go-redis/v9 v9.0.1
)
1 change: 0 additions & 1 deletion extra/rediscmd/rediscmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"testing"

. "github.com/bsm/ginkgo/v2"
. "github.com/bsm/ginkgo/v2/extensions/table"
. "github.com/bsm/gomega"
)

Expand Down
4 changes: 2 additions & 2 deletions extra/redisotel/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ replace github.com/redis/go-redis/v9 => ../..
replace github.com/redis/go-redis/extra/rediscmd/v9 => ../rediscmd

require (
github.com/redis/go-redis/extra/rediscmd/v9 v9.0.0
github.com/redis/go-redis/v9 v9.0.0
github.com/redis/go-redis/extra/rediscmd/v9 v9.0.1
github.com/redis/go-redis/v9 v9.0.1
go.opentelemetry.io/otel v1.11.2
go.opentelemetry.io/otel/metric v0.34.0
go.opentelemetry.io/otel/sdk v1.9.0
Expand Down
26 changes: 0 additions & 26 deletions extra/redisotel/redisotel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,32 +34,6 @@ func TestNewWithTracerProvider(t *testing.T) {
}
}

func TestNewWithAttributes(t *testing.T) {
provider := sdktrace.NewTracerProvider()
hook := newTracingHook("", WithTracerProvider(provider), WithAttributes(semconv.NetPeerNameKey.String("localhost")))
ctx, span := provider.Tracer("redis-test").Start(context.TODO(), "redis-test")
cmd := redis.NewCmd(ctx, "ping")
defer span.End()

processHook := hook.ProcessHook(func(ctx context.Context, cmd redis.Cmder) error {
attrs := trace.SpanFromContext(ctx).(sdktrace.ReadOnlySpan).Attributes()
if !(attrs[0] == semconv.DBSystemRedis) {
t.Fatalf("expected attrs[0] to be semconv.DBSystemRedis, got: %v", attrs[0])
}
if !(attrs[1] == semconv.NetPeerNameKey.String("localhost")) {
t.Fatalf("expected attrs[1] to be semconv.NetPeerNameKey.String(\"localhost\"), got: %v", attrs[1])
}
if !(attrs[2] == semconv.DBStatementKey.String("ping")) {
t.Fatalf("expected attrs[2] to be semconv.DBStatementKey.String(\"ping\"), got: %v", attrs[2])
}
return nil
})
err := processHook(ctx, cmd)
if err != nil {
t.Fatal(err)
}
}

func TestWithDBStatement(t *testing.T) {
provider := sdktrace.NewTracerProvider()
hook := newTracingHook(
Expand Down
2 changes: 1 addition & 1 deletion extra/redisprometheus/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replace github.com/redis/go-redis/v9 => ../..

require (
github.com/prometheus/client_golang v1.14.0
github.com/redis/go-redis/v9 v9.0.0
github.com/redis/go-redis/v9 v9.0.1
)

require (
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redis",
"version": "9.0.0",
"version": "9.0.1",
"main": "index.js",
"repository": "git@github.com:redis/go-redis.git",
"author": "Vladimir Mihailenco <vladimir.webdev@gmail.com>",
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package redis

// Version is the current release version.
func Version() string {
return "9.0.0"
return "9.0.1"
}

0 comments on commit 7ee1282

Please sign in to comment.