diff --git a/.travis.yml b/.travis.yml index e0a2f98..afbe1a4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,5 +19,5 @@ install: - go get github.com/onsi/gomega - go get github.com/garyburd/redigo/redis - mkdir -p $HOME/gopath/src/gopkg.in - - mv $HOME/gopath/src/github.com/go-redis/redis $HOME/gopath/src/gopkg.in/redis.v3 - - cd $HOME/gopath/src/gopkg.in/redis.v3 + - mv $HOME/gopath/src/github.com/go-redis/redis $HOME/gopath/src/gopkg.in/redis.v4 + - cd $HOME/gopath/src/gopkg.in/redis.v4 diff --git a/bench_test.go b/bench_test.go index 6a7edd6..0c40cf3 100644 --- a/bench_test.go +++ b/bench_test.go @@ -7,7 +7,7 @@ import ( redigo "github.com/garyburd/redigo/redis" - "gopkg.in/redis.v3" + "gopkg.in/redis.v4" ) func benchmarkRedisClient(poolSize int) *redis.Client { diff --git a/cluster.go b/cluster.go index 75b3787..592db7b 100644 --- a/cluster.go +++ b/cluster.go @@ -6,8 +6,8 @@ import ( "sync/atomic" "time" - "gopkg.in/redis.v3/internal/hashtag" - "gopkg.in/redis.v3/internal/pool" + "gopkg.in/redis.v4/internal/hashtag" + "gopkg.in/redis.v4/internal/pool" ) // ClusterClient is a Redis Cluster client representing a pool of zero diff --git a/cluster_test.go b/cluster_test.go index 24d516b..3a4ddb5 100644 --- a/cluster_test.go +++ b/cluster_test.go @@ -14,8 +14,8 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "gopkg.in/redis.v3" - "gopkg.in/redis.v3/internal/hashtag" + "gopkg.in/redis.v4" + "gopkg.in/redis.v4/internal/hashtag" ) type clusterScenario struct { diff --git a/command.go b/command.go index b6a9b19..e10d2fb 100644 --- a/command.go +++ b/command.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "gopkg.in/redis.v3/internal/pool" + "gopkg.in/redis.v4/internal/pool" ) var ( diff --git a/command_test.go b/command_test.go index 2b218ac..ce7a960 100644 --- a/command_test.go +++ b/command_test.go @@ -4,7 +4,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "gopkg.in/redis.v3" + "gopkg.in/redis.v4" ) var _ = Describe("Command", func() { diff --git a/commands_test.go b/commands_test.go index dfa22ca..05728a9 100644 --- a/commands_test.go +++ b/commands_test.go @@ -9,7 +9,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "gopkg.in/redis.v3" + "gopkg.in/redis.v4" ) var _ = Describe("Commands", func() { diff --git a/example_test.go b/example_test.go index 587ef78..2e1ea59 100644 --- a/example_test.go +++ b/example_test.go @@ -6,7 +6,7 @@ import ( "sync" "time" - "gopkg.in/redis.v3" + "gopkg.in/redis.v4" ) var client *redis.Client diff --git a/export_test.go b/export_test.go index f071b54..948cfb1 100644 --- a/export_test.go +++ b/export_test.go @@ -3,7 +3,7 @@ package redis import ( "time" - "gopkg.in/redis.v3/internal/pool" + "gopkg.in/redis.v4/internal/pool" ) func (c *baseClient) Pool() pool.Pooler { diff --git a/internal/pool/bench_test.go b/internal/pool/bench_test.go index ff102aa..878b202 100644 --- a/internal/pool/bench_test.go +++ b/internal/pool/bench_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "gopkg.in/redis.v3/internal/pool" + "gopkg.in/redis.v4/internal/pool" ) func benchmarkPoolGetPut(b *testing.B, poolSize int) { diff --git a/internal/pool/pool_test.go b/internal/pool/pool_test.go index 9d07cd5..ceec428 100644 --- a/internal/pool/pool_test.go +++ b/internal/pool/pool_test.go @@ -9,7 +9,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "gopkg.in/redis.v3/internal/pool" + "gopkg.in/redis.v4/internal/pool" ) var _ = Describe("ConnPool", func() { diff --git a/main_test.go b/main_test.go index cf6b181..b0277e8 100644 --- a/main_test.go +++ b/main_test.go @@ -14,7 +14,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "gopkg.in/redis.v3" + "gopkg.in/redis.v4" ) const ( @@ -94,7 +94,7 @@ var _ = AfterSuite(func() { func TestGinkgoSuite(t *testing.T) { RegisterFailHandler(Fail) - RunSpecs(t, "gopkg.in/redis.v3") + RunSpecs(t, "gopkg.in/redis.v4") } //------------------------------------------------------------------------------ diff --git a/options.go b/options.go index 6214496..dea2784 100644 --- a/options.go +++ b/options.go @@ -4,7 +4,7 @@ import ( "net" "time" - "gopkg.in/redis.v3/internal/pool" + "gopkg.in/redis.v4/internal/pool" ) type Options struct { diff --git a/parser.go b/parser.go index d96b5e8..4d8fee1 100644 --- a/parser.go +++ b/parser.go @@ -6,7 +6,7 @@ import ( "net" "strconv" - "gopkg.in/redis.v3/internal/pool" + "gopkg.in/redis.v4/internal/pool" ) const ( diff --git a/parser_test.go b/parser_test.go index 77287a7..d8fa360 100644 --- a/parser_test.go +++ b/parser_test.go @@ -5,7 +5,7 @@ import ( "bytes" "testing" - "gopkg.in/redis.v3/internal/pool" + "gopkg.in/redis.v4/internal/pool" ) func BenchmarkParseReplyStatus(b *testing.B) { diff --git a/pipeline.go b/pipeline.go index 95d389f..fcddc61 100644 --- a/pipeline.go +++ b/pipeline.go @@ -4,7 +4,7 @@ import ( "sync" "sync/atomic" - "gopkg.in/redis.v3/internal/pool" + "gopkg.in/redis.v4/internal/pool" ) // Pipeline implements pipelining as described in diff --git a/pipeline_test.go b/pipeline_test.go index cfbed6e..939c8b8 100644 --- a/pipeline_test.go +++ b/pipeline_test.go @@ -7,7 +7,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "gopkg.in/redis.v3" + "gopkg.in/redis.v4" ) var _ = Describe("Pipelining", func() { diff --git a/pool_test.go b/pool_test.go index bdf168a..fcaf243 100644 --- a/pool_test.go +++ b/pool_test.go @@ -4,8 +4,8 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "gopkg.in/redis.v3" - "gopkg.in/redis.v3/internal/pool" + "gopkg.in/redis.v4" + "gopkg.in/redis.v4/internal/pool" ) var _ = Describe("pool", func() { diff --git a/pubsub.go b/pubsub.go index 844dfea..595c9d1 100644 --- a/pubsub.go +++ b/pubsub.go @@ -5,7 +5,7 @@ import ( "net" "time" - "gopkg.in/redis.v3/internal/pool" + "gopkg.in/redis.v4/internal/pool" ) var receiveMessageTimeout = 5 * time.Second diff --git a/pubsub_test.go b/pubsub_test.go index 95ab153..11b14b4 100644 --- a/pubsub_test.go +++ b/pubsub_test.go @@ -9,7 +9,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "gopkg.in/redis.v3" + "gopkg.in/redis.v4" ) var _ = Describe("PubSub", func() { diff --git a/race_test.go b/race_test.go index 968f76e..c2d3dff 100644 --- a/race_test.go +++ b/race_test.go @@ -11,8 +11,8 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "gopkg.in/redis.v3" - "gopkg.in/redis.v3/internal/pool" + "gopkg.in/redis.v4" + "gopkg.in/redis.v4/internal/pool" ) var _ = Describe("races", func() { diff --git a/redis.go b/redis.go index 8899848..3e37a00 100644 --- a/redis.go +++ b/redis.go @@ -1,11 +1,11 @@ -package redis // import "gopkg.in/redis.v3" +package redis // import "gopkg.in/redis.v4" import ( "fmt" "io/ioutil" "log" - "gopkg.in/redis.v3/internal/pool" + "gopkg.in/redis.v4/internal/pool" ) // Deprecated. Use SetLogger instead. diff --git a/redis_test.go b/redis_test.go index 9d4a360..5464a47 100644 --- a/redis_test.go +++ b/redis_test.go @@ -7,7 +7,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "gopkg.in/redis.v3" + "gopkg.in/redis.v4" ) var _ = Describe("Client", func() { diff --git a/ring.go b/ring.go index 02be83c..0cd3121 100644 --- a/ring.go +++ b/ring.go @@ -6,9 +6,9 @@ import ( "sync" "time" - "gopkg.in/redis.v3/internal/consistenthash" - "gopkg.in/redis.v3/internal/hashtag" - "gopkg.in/redis.v3/internal/pool" + "gopkg.in/redis.v4/internal/consistenthash" + "gopkg.in/redis.v4/internal/hashtag" + "gopkg.in/redis.v4/internal/pool" ) var ( diff --git a/ring_test.go b/ring_test.go index 06e6c30..9e1576b 100644 --- a/ring_test.go +++ b/ring_test.go @@ -8,7 +8,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "gopkg.in/redis.v3" + "gopkg.in/redis.v4" ) var _ = Describe("Redis ring", func() { diff --git a/sentinel.go b/sentinel.go index 1f8ec13..cf8e838 100644 --- a/sentinel.go +++ b/sentinel.go @@ -8,7 +8,7 @@ import ( "sync" "time" - "gopkg.in/redis.v3/internal/pool" + "gopkg.in/redis.v4/internal/pool" ) //------------------------------------------------------------------------------ diff --git a/sentinel_test.go b/sentinel_test.go index 693b957..165cce6 100644 --- a/sentinel_test.go +++ b/sentinel_test.go @@ -4,7 +4,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "gopkg.in/redis.v3" + "gopkg.in/redis.v4" ) var _ = Describe("Sentinel", func() { diff --git a/tx.go b/tx.go index 51c8757..3273e2c 100644 --- a/tx.go +++ b/tx.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "gopkg.in/redis.v3/internal/pool" + "gopkg.in/redis.v4/internal/pool" ) var errDiscard = errors.New("redis: Discard can be used only inside Exec") diff --git a/tx_test.go b/tx_test.go index 66ef6b0..5df4b6a 100644 --- a/tx_test.go +++ b/tx_test.go @@ -7,7 +7,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "gopkg.in/redis.v3" + "gopkg.in/redis.v4" ) var _ = Describe("Tx", func() {