Skip to content

Commit 8040d63

Browse files
committed
Remove gopkg.in
1 parent d95ce53 commit 8040d63

39 files changed

+64
-66
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ services:
66

77
go:
88
- 1.4
9-
- 1.6
109
- 1.7
10+
- 1.8
1111
- tip
1212

1313
matrix:
@@ -18,5 +18,3 @@ matrix:
1818
install:
1919
- go get github.com/onsi/ginkgo
2020
- go get github.com/onsi/gomega
21-
- mkdir -p $HOME/gopath/src/gopkg.in
22-
- mv `pwd` $HOME/gopath/src/gopkg.in/redis.v5

bench_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
"time"
77

8-
"gopkg.in/redis.v5"
8+
"github.com/go-redis/redis"
99
)
1010

1111
func benchmarkRedisClient(poolSize int) *redis.Client {

cluster.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
"sync/atomic"
88
"time"
99

10-
"gopkg.in/redis.v5/internal"
11-
"gopkg.in/redis.v5/internal/hashtag"
12-
"gopkg.in/redis.v5/internal/pool"
13-
"gopkg.in/redis.v5/internal/proto"
10+
"github.com/go-redis/redis/internal"
11+
"github.com/go-redis/redis/internal/hashtag"
12+
"github.com/go-redis/redis/internal/pool"
13+
"github.com/go-redis/redis/internal/proto"
1414
)
1515

1616
var errClusterNoNodes = internal.RedisError("redis: cluster has no nodes")

cluster_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"testing"
1010
"time"
1111

12-
"gopkg.in/redis.v5"
13-
"gopkg.in/redis.v5/internal/hashtag"
12+
"github.com/go-redis/redis"
13+
"github.com/go-redis/redis/internal/hashtag"
1414

1515
. "github.com/onsi/ginkgo"
1616
. "github.com/onsi/gomega"

command.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"strings"
88
"time"
99

10-
"gopkg.in/redis.v5/internal"
11-
"gopkg.in/redis.v5/internal/pool"
12-
"gopkg.in/redis.v5/internal/proto"
10+
"github.com/go-redis/redis/internal"
11+
"github.com/go-redis/redis/internal/pool"
12+
"github.com/go-redis/redis/internal/proto"
1313
)
1414

1515
var (

command_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package redis_test
22

33
import (
4+
"github.com/go-redis/redis"
5+
46
. "github.com/onsi/ginkgo"
57
. "github.com/onsi/gomega"
6-
7-
"gopkg.in/redis.v5"
88
)
99

1010
var _ = Describe("Cmd", func() {

commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strconv"
66
"time"
77

8-
"gopkg.in/redis.v5/internal"
8+
"github.com/go-redis/redis/internal"
99
)
1010

1111
func readTimeout(timeout time.Duration) time.Duration {

commands_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
. "github.com/onsi/ginkgo"
1010
. "github.com/onsi/gomega"
1111

12-
"gopkg.in/redis.v5"
12+
"github.com/go-redis/redis"
1313
)
1414

1515
var _ = Describe("Commands", func() {

example_instrumentation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"sync/atomic"
66
"time"
77

8-
redis "gopkg.in/redis.v5"
8+
"github.com/go-redis/redis"
99
)
1010

1111
func Example_instrumentation() {

example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"sync"
77
"time"
88

9-
"gopkg.in/redis.v5"
9+
"github.com/go-redis/redis"
1010
)
1111

1212
var client *redis.Client

export_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package redis
33
import (
44
"time"
55

6-
"gopkg.in/redis.v5/internal/pool"
6+
"github.com/go-redis/redis/internal/pool"
77
)
88

99
func (c *baseClient) Pool() pool.Pooler {

internal/pool/bench_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
"time"
77

8-
"gopkg.in/redis.v5/internal/pool"
8+
"github.com/go-redis/redis/internal/pool"
99
)
1010

1111
func benchmarkPoolGetPut(b *testing.B, poolSize int) {

internal/pool/conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"sync/atomic"
66
"time"
77

8-
"gopkg.in/redis.v5/internal/proto"
8+
"github.com/go-redis/redis/internal/proto"
99
)
1010

1111
var noDeadline = time.Time{}

internal/pool/pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"sync/atomic"
99
"time"
1010

11-
"gopkg.in/redis.v5/internal"
11+
"github.com/go-redis/redis/internal"
1212
)
1313

1414
var (

internal/pool/pool_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"testing"
66
"time"
77

8+
"github.com/go-redis/redis/internal/pool"
9+
810
. "github.com/onsi/ginkgo"
911
. "github.com/onsi/gomega"
10-
11-
"gopkg.in/redis.v5/internal/pool"
1212
)
1313

1414
var _ = Describe("ConnPool", func() {

internal/proto/reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"io"
77
"strconv"
88

9-
"gopkg.in/redis.v5/internal"
9+
"github.com/go-redis/redis/internal"
1010
)
1111

1212
const bytesAllocLimit = 1024 * 1024 // 1mb

internal/proto/reader_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strings"
66
"testing"
77

8-
"gopkg.in/redis.v5/internal/proto"
8+
"github.com/go-redis/redis/internal/proto"
99

1010
. "github.com/onsi/ginkgo"
1111
. "github.com/onsi/gomega"

internal/proto/scan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"reflect"
77

8-
"gopkg.in/redis.v5/internal"
8+
"github.com/go-redis/redis/internal"
99
)
1010

1111
func Scan(b []byte, v interface{}) error {

internal/proto/write_buffer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55
"time"
66

7-
"gopkg.in/redis.v5/internal/proto"
7+
"github.com/go-redis/redis/internal/proto"
88

99
. "github.com/onsi/ginkgo"
1010
. "github.com/onsi/gomega"

iterator_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ package redis_test
33
import (
44
"fmt"
55

6+
"github.com/go-redis/redis"
7+
68
. "github.com/onsi/ginkgo"
79
. "github.com/onsi/gomega"
8-
9-
"gopkg.in/redis.v5"
1010
)
1111

1212
var _ = Describe("ScanIterator", func() {

main_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import (
1212
"testing"
1313
"time"
1414

15+
"github.com/go-redis/redis"
16+
1517
. "github.com/onsi/ginkgo"
1618
. "github.com/onsi/gomega"
17-
18-
"gopkg.in/redis.v5"
1919
)
2020

2121
const (
@@ -95,7 +95,7 @@ var _ = AfterSuite(func() {
9595

9696
func TestGinkgoSuite(t *testing.T) {
9797
RegisterFailHandler(Fail)
98-
RunSpecs(t, "gopkg.in/redis.v5")
98+
RunSpecs(t, "go-redis")
9999
}
100100

101101
//------------------------------------------------------------------------------

options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"strings"
1111
"time"
1212

13-
"gopkg.in/redis.v5/internal/pool"
13+
"github.com/go-redis/redis/internal/pool"
1414
)
1515

1616
type Options struct {

parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strconv"
77
"time"
88

9-
"gopkg.in/redis.v5/internal/proto"
9+
"github.com/go-redis/redis/internal/proto"
1010
)
1111

1212
// Implements proto.MultiBulkParse

pipeline.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"errors"
55
"sync"
66

7-
"gopkg.in/redis.v5/internal/pool"
7+
"github.com/go-redis/redis/internal/pool"
88
)
99

1010
type pipelineExecer func([]Cmder) error

pipeline_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package redis_test
22

33
import (
4-
"gopkg.in/redis.v5"
4+
"github.com/go-redis/redis"
55

66
. "github.com/onsi/ginkgo"
77
. "github.com/onsi/gomega"

pool_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ package redis_test
33
import (
44
"time"
55

6+
"github.com/go-redis/redis"
7+
68
. "github.com/onsi/ginkgo"
79
. "github.com/onsi/gomega"
8-
9-
"gopkg.in/redis.v5"
1010
)
1111

1212
var _ = Describe("pool", func() {

pubsub.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"sync"
77
"time"
88

9-
"gopkg.in/redis.v5/internal"
10-
"gopkg.in/redis.v5/internal/pool"
9+
"github.com/go-redis/redis/internal"
10+
"github.com/go-redis/redis/internal/pool"
1111
)
1212

1313
// PubSub implements Pub/Sub commands as described in

pubsub_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"sync"
77
"time"
88

9-
"gopkg.in/redis.v5"
9+
"github.com/go-redis/redis"
1010

1111
. "github.com/onsi/ginkgo"
1212
. "github.com/onsi/gomega"

race_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"testing"
99
"time"
1010

11+
"github.com/go-redis/redis"
12+
1113
. "github.com/onsi/ginkgo"
1214
. "github.com/onsi/gomega"
13-
14-
"gopkg.in/redis.v5"
1515
)
1616

1717
var _ = Describe("races", func() {

redis.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
package redis // import "gopkg.in/redis.v5"
1+
package redis
22

33
import (
44
"fmt"
55
"log"
66
"time"
77

8-
"gopkg.in/redis.v5/internal"
9-
"gopkg.in/redis.v5/internal/pool"
10-
"gopkg.in/redis.v5/internal/proto"
8+
"github.com/go-redis/redis/internal"
9+
"github.com/go-redis/redis/internal/pool"
10+
"github.com/go-redis/redis/internal/proto"
1111
)
1212

1313
// Redis nil reply, .e.g. when key does not exist.

redis_context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package redis
55
import (
66
"context"
77

8-
"gopkg.in/redis.v5/internal/pool"
8+
"github.com/go-redis/redis/internal/pool"
99
)
1010

1111
type baseClient struct {

redis_no_context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
package redis
44

55
import (
6-
"gopkg.in/redis.v5/internal/pool"
6+
"github.com/go-redis/redis/internal/pool"
77
)
88

99
type baseClient struct {

redis_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"net"
66
"time"
77

8-
"gopkg.in/redis.v5"
8+
"github.com/go-redis/redis"
99

1010
. "github.com/onsi/ginkgo"
1111
. "github.com/onsi/gomega"

ring.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99
"sync/atomic"
1010
"time"
1111

12-
"gopkg.in/redis.v5/internal"
13-
"gopkg.in/redis.v5/internal/consistenthash"
14-
"gopkg.in/redis.v5/internal/hashtag"
15-
"gopkg.in/redis.v5/internal/pool"
12+
"github.com/go-redis/redis/internal"
13+
"github.com/go-redis/redis/internal/consistenthash"
14+
"github.com/go-redis/redis/internal/hashtag"
15+
"github.com/go-redis/redis/internal/pool"
1616
)
1717

1818
var errRingShardsDown = errors.New("redis: all ring shards are down")

ring_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"fmt"
66
"time"
77

8+
"github.com/go-redis/redis"
9+
810
. "github.com/onsi/ginkgo"
911
. "github.com/onsi/gomega"
10-
11-
"gopkg.in/redis.v5"
1212
)
1313

1414
var _ = Describe("Redis Ring", func() {

sentinel.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"sync"
99
"time"
1010

11-
"gopkg.in/redis.v5/internal"
12-
"gopkg.in/redis.v5/internal/pool"
11+
"github.com/go-redis/redis/internal"
12+
"github.com/go-redis/redis/internal/pool"
1313
)
1414

1515
//------------------------------------------------------------------------------

0 commit comments

Comments
 (0)