diff --git a/bench_test.go b/bench_test.go index 834ba07f3..f670a7c5b 100644 --- a/bench_test.go +++ b/bench_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/go-redis/redis" + "github.com/go-redis/redis/v7" ) func benchmarkRedisClient(poolSize int) *redis.Client { diff --git a/cluster.go b/cluster.go index d65fbffc8..3559b12f9 100644 --- a/cluster.go +++ b/cluster.go @@ -13,10 +13,10 @@ import ( "sync/atomic" "time" - "github.com/go-redis/redis/internal" - "github.com/go-redis/redis/internal/hashtag" - "github.com/go-redis/redis/internal/pool" - "github.com/go-redis/redis/internal/proto" + "github.com/go-redis/redis/v7/internal" + "github.com/go-redis/redis/v7/internal/hashtag" + "github.com/go-redis/redis/v7/internal/pool" + "github.com/go-redis/redis/v7/internal/proto" ) var errClusterNoNodes = fmt.Errorf("redis: cluster has no nodes") diff --git a/cluster_test.go b/cluster_test.go index aa92a817b..f4b7e366c 100644 --- a/cluster_test.go +++ b/cluster_test.go @@ -9,8 +9,8 @@ import ( "sync" "time" - "github.com/go-redis/redis" - "github.com/go-redis/redis/internal/hashtag" + "github.com/go-redis/redis/v7" + "github.com/go-redis/redis/v7/internal/hashtag" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/command.go b/command.go index bd3578498..02a3e1e81 100644 --- a/command.go +++ b/command.go @@ -7,9 +7,9 @@ import ( "strings" "time" - "github.com/go-redis/redis/internal" - "github.com/go-redis/redis/internal/proto" - "github.com/go-redis/redis/internal/util" + "github.com/go-redis/redis/v7/internal" + "github.com/go-redis/redis/v7/internal/proto" + "github.com/go-redis/redis/v7/internal/util" ) type Cmder interface { diff --git a/command_test.go b/command_test.go index 54e994514..a0d753e8d 100644 --- a/command_test.go +++ b/command_test.go @@ -3,7 +3,7 @@ package redis_test import ( "time" - "github.com/go-redis/redis" + "github.com/go-redis/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/commands.go b/commands.go index 1f07f36cb..ec2d4c9a0 100644 --- a/commands.go +++ b/commands.go @@ -5,7 +5,7 @@ import ( "io" "time" - "github.com/go-redis/redis/internal" + "github.com/go-redis/redis/v7/internal" ) func usePrecise(dur time.Duration) bool { diff --git a/commands_test.go b/commands_test.go index 7fa9b7324..d1bb6eda2 100644 --- a/commands_test.go +++ b/commands_test.go @@ -9,8 +9,8 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis" - "github.com/go-redis/redis/internal/proto" + "github.com/go-redis/redis/v7" + "github.com/go-redis/redis/v7/internal/proto" ) var _ = Describe("Commands", func() { diff --git a/error.go b/error.go index 0ab014dee..a84c44f12 100644 --- a/error.go +++ b/error.go @@ -6,7 +6,7 @@ import ( "net" "strings" - "github.com/go-redis/redis/internal/proto" + "github.com/go-redis/redis/v7/internal/proto" ) func isRetryableError(err error, retryTimeout bool) bool { diff --git a/example_instrumentation_test.go b/example_instrumentation_test.go index e128ae36c..cbe03dad3 100644 --- a/example_instrumentation_test.go +++ b/example_instrumentation_test.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/go-redis/redis" + "github.com/go-redis/redis/v7" ) type redisHook struct{} diff --git a/example_test.go b/example_test.go index d986a814d..89d06facc 100644 --- a/example_test.go +++ b/example_test.go @@ -6,7 +6,7 @@ import ( "sync" "time" - "github.com/go-redis/redis" + "github.com/go-redis/redis/v7" ) var redisdb *redis.Client diff --git a/export_test.go b/export_test.go index 4dc0c6283..899bb9ae3 100644 --- a/export_test.go +++ b/export_test.go @@ -5,8 +5,8 @@ import ( "net" "strings" - "github.com/go-redis/redis/internal/hashtag" - "github.com/go-redis/redis/internal/pool" + "github.com/go-redis/redis/v7/internal/hashtag" + "github.com/go-redis/redis/v7/internal/pool" ) func (c *baseClient) Pool() pool.Pooler { diff --git a/go.mod b/go.mod index eb4969dbc..32a3ad7d5 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/go-redis/redis +module github.com/go-redis/redis/v7 require ( github.com/onsi/ginkgo v1.8.0 diff --git a/go.sum b/go.sum index 4fd21a150..9a981670c 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,6 @@ github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/go-redis/redis v6.15.3+incompatible h1:NZ0O90AhLSvSrvLZ/S9h7D4kl1mW2PrKyxL7MyBKO2g= github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI= diff --git a/internal/pool/bench_test.go b/internal/pool/bench_test.go index 197604cbe..0d3620ef8 100644 --- a/internal/pool/bench_test.go +++ b/internal/pool/bench_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/go-redis/redis/internal/pool" + "github.com/go-redis/redis/v7/internal/pool" ) type poolGetPutBenchmark struct { diff --git a/internal/pool/conn.go b/internal/pool/conn.go index 0b64ccfec..1dc6e97a2 100644 --- a/internal/pool/conn.go +++ b/internal/pool/conn.go @@ -6,7 +6,7 @@ import ( "sync/atomic" "time" - "github.com/go-redis/redis/internal/proto" + "github.com/go-redis/redis/v7/internal/proto" ) var noDeadline = time.Time{} diff --git a/internal/pool/pool.go b/internal/pool/pool.go index 1ac34fbeb..4cdcff2f6 100644 --- a/internal/pool/pool.go +++ b/internal/pool/pool.go @@ -8,7 +8,7 @@ import ( "sync/atomic" "time" - "github.com/go-redis/redis/internal" + "github.com/go-redis/redis/v7/internal" ) var ErrClosed = errors.New("redis: client is closed") diff --git a/internal/pool/pool_test.go b/internal/pool/pool_test.go index 158c17cd4..f29600f12 100644 --- a/internal/pool/pool_test.go +++ b/internal/pool/pool_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/go-redis/redis/internal/pool" + "github.com/go-redis/redis/v7/internal/pool" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/internal/proto/reader.go b/internal/proto/reader.go index 7a9755abb..7a2777ee5 100644 --- a/internal/proto/reader.go +++ b/internal/proto/reader.go @@ -6,7 +6,7 @@ import ( "io" "strconv" - "github.com/go-redis/redis/internal/util" + "github.com/go-redis/redis/v7/internal/util" ) const ( diff --git a/internal/proto/reader_test.go b/internal/proto/reader_test.go index c4a4c128b..1e87f34bd 100644 --- a/internal/proto/reader_test.go +++ b/internal/proto/reader_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "github.com/go-redis/redis/internal/proto" + "github.com/go-redis/redis/v7/internal/proto" ) func BenchmarkReader_ParseReply_Status(b *testing.B) { diff --git a/internal/proto/scan.go b/internal/proto/scan.go index 3bdb33f9d..90c1e4ae6 100644 --- a/internal/proto/scan.go +++ b/internal/proto/scan.go @@ -5,7 +5,7 @@ import ( "fmt" "reflect" - "github.com/go-redis/redis/internal/util" + "github.com/go-redis/redis/v7/internal/util" ) func Scan(b []byte, v interface{}) error { diff --git a/internal/proto/write_buffer_test.go b/internal/proto/write_buffer_test.go index 2de532ee6..4a9339ee2 100644 --- a/internal/proto/write_buffer_test.go +++ b/internal/proto/write_buffer_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/go-redis/redis/internal/proto" + "github.com/go-redis/redis/v7/internal/proto" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/internal/proto/writer.go b/internal/proto/writer.go index ab2739e82..7e77a3ba8 100644 --- a/internal/proto/writer.go +++ b/internal/proto/writer.go @@ -8,7 +8,7 @@ import ( "strconv" "time" - "github.com/go-redis/redis/internal/util" + "github.com/go-redis/redis/v7/internal/util" ) type Writer struct { diff --git a/internal/util.go b/internal/util.go index 30223fb27..844f34bad 100644 --- a/internal/util.go +++ b/internal/util.go @@ -4,7 +4,7 @@ import ( "context" "time" - "github.com/go-redis/redis/internal/util" + "github.com/go-redis/redis/v7/internal/util" ) func Sleep(ctx context.Context, dur time.Duration) error { diff --git a/iterator_test.go b/iterator_test.go index a2e623813..fce3ea1f7 100644 --- a/iterator_test.go +++ b/iterator_test.go @@ -3,7 +3,7 @@ package redis_test import ( "fmt" - "github.com/go-redis/redis" + "github.com/go-redis/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/main_test.go b/main_test.go index f51c63788..33c970c13 100644 --- a/main_test.go +++ b/main_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/go-redis/redis" + "github.com/go-redis/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/options.go b/options.go index 095be5a13..47110428a 100644 --- a/options.go +++ b/options.go @@ -12,7 +12,7 @@ import ( "strings" "time" - "github.com/go-redis/redis/internal/pool" + "github.com/go-redis/redis/v7/internal/pool" ) // Limiter is the interface of a rate limiter or a circuit breaker. diff --git a/pipeline.go b/pipeline.go index d5c7fbb6a..d48566a78 100644 --- a/pipeline.go +++ b/pipeline.go @@ -4,7 +4,7 @@ import ( "context" "sync" - "github.com/go-redis/redis/internal/pool" + "github.com/go-redis/redis/v7/internal/pool" ) type pipelineExecer func(context.Context, []Cmder) error diff --git a/pipeline_test.go b/pipeline_test.go index 0d7b83e96..fb82e4eb4 100644 --- a/pipeline_test.go +++ b/pipeline_test.go @@ -1,7 +1,7 @@ package redis_test import ( - "github.com/go-redis/redis" + "github.com/go-redis/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/pool_test.go b/pool_test.go index 2f3b10e1e..ab44308fb 100644 --- a/pool_test.go +++ b/pool_test.go @@ -4,7 +4,7 @@ import ( "context" "time" - "github.com/go-redis/redis" + "github.com/go-redis/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/pubsub.go b/pubsub.go index 72226d358..c465078ee 100644 --- a/pubsub.go +++ b/pubsub.go @@ -8,9 +8,9 @@ import ( "sync" "time" - "github.com/go-redis/redis/internal" - "github.com/go-redis/redis/internal/pool" - "github.com/go-redis/redis/internal/proto" + "github.com/go-redis/redis/v7/internal" + "github.com/go-redis/redis/v7/internal/pool" + "github.com/go-redis/redis/v7/internal/proto" ) const pingTimeout = 30 * time.Second diff --git a/pubsub_test.go b/pubsub_test.go index ea4b26e0c..1544c9d5b 100644 --- a/pubsub_test.go +++ b/pubsub_test.go @@ -6,7 +6,7 @@ import ( "sync" "time" - "github.com/go-redis/redis" + "github.com/go-redis/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/race_test.go b/race_test.go index 04effc46b..a1dace6af 100644 --- a/race_test.go +++ b/race_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/go-redis/redis" + "github.com/go-redis/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/redis.go b/redis.go index 669557631..239d36db1 100644 --- a/redis.go +++ b/redis.go @@ -6,9 +6,9 @@ import ( "log" "time" - "github.com/go-redis/redis/internal" - "github.com/go-redis/redis/internal/pool" - "github.com/go-redis/redis/internal/proto" + "github.com/go-redis/redis/v7/internal" + "github.com/go-redis/redis/v7/internal/pool" + "github.com/go-redis/redis/v7/internal/proto" ) // Nil reply Redis returns when key does not exist. diff --git a/redis_test.go b/redis_test.go index d7633806a..cd9cd1be1 100644 --- a/redis_test.go +++ b/redis_test.go @@ -6,7 +6,7 @@ import ( "net" "time" - "github.com/go-redis/redis" + "github.com/go-redis/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/ring.go b/ring.go index 5b7a7b920..c6f592d02 100644 --- a/ring.go +++ b/ring.go @@ -10,10 +10,10 @@ import ( "sync/atomic" "time" - "github.com/go-redis/redis/internal" - "github.com/go-redis/redis/internal/consistenthash" - "github.com/go-redis/redis/internal/hashtag" - "github.com/go-redis/redis/internal/pool" + "github.com/go-redis/redis/v7/internal" + "github.com/go-redis/redis/v7/internal/consistenthash" + "github.com/go-redis/redis/v7/internal/hashtag" + "github.com/go-redis/redis/v7/internal/pool" ) // Hash is type of hash function used in consistent hash. diff --git a/ring_test.go b/ring_test.go index ff4b3fb35..e35daeb80 100644 --- a/ring_test.go +++ b/ring_test.go @@ -9,7 +9,7 @@ import ( "sync" "time" - "github.com/go-redis/redis" + "github.com/go-redis/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/sentinel.go b/sentinel.go index 0e26da1f8..653e20289 100644 --- a/sentinel.go +++ b/sentinel.go @@ -9,8 +9,8 @@ import ( "sync" "time" - "github.com/go-redis/redis/internal" - "github.com/go-redis/redis/internal/pool" + "github.com/go-redis/redis/v7/internal" + "github.com/go-redis/redis/v7/internal/pool" ) //------------------------------------------------------------------------------ diff --git a/sentinel_test.go b/sentinel_test.go index 64c8e6e96..9f86ebfa7 100644 --- a/sentinel_test.go +++ b/sentinel_test.go @@ -1,7 +1,7 @@ package redis_test import ( - "github.com/go-redis/redis" + "github.com/go-redis/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/tx.go b/tx.go index 327f1ab8a..b60036d3c 100644 --- a/tx.go +++ b/tx.go @@ -3,8 +3,8 @@ package redis import ( "context" - "github.com/go-redis/redis/internal/pool" - "github.com/go-redis/redis/internal/proto" + "github.com/go-redis/redis/v7/internal/pool" + "github.com/go-redis/redis/v7/internal/proto" ) // TxFailedErr transaction redis failed. diff --git a/tx_test.go b/tx_test.go index dc3139c62..dd109722c 100644 --- a/tx_test.go +++ b/tx_test.go @@ -5,7 +5,7 @@ import ( "strconv" "sync" - "github.com/go-redis/redis" + "github.com/go-redis/redis/v7" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" diff --git a/universal_test.go b/universal_test.go index 2a0850dea..f22f69c5c 100644 --- a/universal_test.go +++ b/universal_test.go @@ -4,7 +4,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/go-redis/redis" + "github.com/go-redis/redis/v7" ) var _ = Describe("UniversalClient", func() {