Skip to content

Commit

Permalink
Remove gopkg.in
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Feb 19, 2017
1 parent d95ce53 commit 8040d63
Show file tree
Hide file tree
Showing 39 changed files with 64 additions and 66 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ services:

go:
- 1.4
- 1.6
- 1.7
- 1.8
- tip

matrix:
Expand All @@ -18,5 +18,3 @@ matrix:
install:
- go get github.com/onsi/ginkgo
- go get github.com/onsi/gomega
- mkdir -p $HOME/gopath/src/gopkg.in
- mv `pwd` $HOME/gopath/src/gopkg.in/redis.v5
2 changes: 1 addition & 1 deletion bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"gopkg.in/redis.v5"
"github.com/go-redis/redis"
)

func benchmarkRedisClient(poolSize int) *redis.Client {
Expand Down
8 changes: 4 additions & 4 deletions cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"sync/atomic"
"time"

"gopkg.in/redis.v5/internal"
"gopkg.in/redis.v5/internal/hashtag"
"gopkg.in/redis.v5/internal/pool"
"gopkg.in/redis.v5/internal/proto"
"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"
)

var errClusterNoNodes = internal.RedisError("redis: cluster has no nodes")
Expand Down
4 changes: 2 additions & 2 deletions cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"testing"
"time"

"gopkg.in/redis.v5"
"gopkg.in/redis.v5/internal/hashtag"
"github.com/go-redis/redis"
"github.com/go-redis/redis/internal/hashtag"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down
6 changes: 3 additions & 3 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"strings"
"time"

"gopkg.in/redis.v5/internal"
"gopkg.in/redis.v5/internal/pool"
"gopkg.in/redis.v5/internal/proto"
"github.com/go-redis/redis/internal"
"github.com/go-redis/redis/internal/pool"
"github.com/go-redis/redis/internal/proto"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions command_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package redis_test

import (
"github.com/go-redis/redis"

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

"gopkg.in/redis.v5"
)

var _ = Describe("Cmd", func() {
Expand Down
2 changes: 1 addition & 1 deletion commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"time"

"gopkg.in/redis.v5/internal"
"github.com/go-redis/redis/internal"
)

func readTimeout(timeout time.Duration) time.Duration {
Expand Down
2 changes: 1 addition & 1 deletion commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

"gopkg.in/redis.v5"
"github.com/go-redis/redis"
)

var _ = Describe("Commands", func() {
Expand Down
2 changes: 1 addition & 1 deletion example_instrumentation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync/atomic"
"time"

redis "gopkg.in/redis.v5"
"github.com/go-redis/redis"
)

func Example_instrumentation() {
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync"
"time"

"gopkg.in/redis.v5"
"github.com/go-redis/redis"
)

var client *redis.Client
Expand Down
2 changes: 1 addition & 1 deletion export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package redis
import (
"time"

"gopkg.in/redis.v5/internal/pool"
"github.com/go-redis/redis/internal/pool"
)

func (c *baseClient) Pool() pool.Pooler {
Expand Down
2 changes: 1 addition & 1 deletion internal/pool/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"gopkg.in/redis.v5/internal/pool"
"github.com/go-redis/redis/internal/pool"
)

func benchmarkPoolGetPut(b *testing.B, poolSize int) {
Expand Down
2 changes: 1 addition & 1 deletion internal/pool/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync/atomic"
"time"

"gopkg.in/redis.v5/internal/proto"
"github.com/go-redis/redis/internal/proto"
)

var noDeadline = time.Time{}
Expand Down
2 changes: 1 addition & 1 deletion internal/pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync/atomic"
"time"

"gopkg.in/redis.v5/internal"
"github.com/go-redis/redis/internal"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions internal/pool/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"testing"
"time"

"github.com/go-redis/redis/internal/pool"

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

"gopkg.in/redis.v5/internal/pool"
)

var _ = Describe("ConnPool", func() {
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io"
"strconv"

"gopkg.in/redis.v5/internal"
"github.com/go-redis/redis/internal"
)

const bytesAllocLimit = 1024 * 1024 // 1mb
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

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

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"reflect"

"gopkg.in/redis.v5/internal"
"github.com/go-redis/redis/internal"
)

func Scan(b []byte, v interface{}) error {
Expand Down
2 changes: 1 addition & 1 deletion internal/proto/write_buffer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

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

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down
4 changes: 2 additions & 2 deletions iterator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package redis_test
import (
"fmt"

"github.com/go-redis/redis"

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

"gopkg.in/redis.v5"
)

var _ = Describe("ScanIterator", func() {
Expand Down
6 changes: 3 additions & 3 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"testing"
"time"

"github.com/go-redis/redis"

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

"gopkg.in/redis.v5"
)

const (
Expand Down Expand Up @@ -95,7 +95,7 @@ var _ = AfterSuite(func() {

func TestGinkgoSuite(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "gopkg.in/redis.v5")
RunSpecs(t, "go-redis")
}

//------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"time"

"gopkg.in/redis.v5/internal/pool"
"github.com/go-redis/redis/internal/pool"
)

type Options struct {
Expand Down
2 changes: 1 addition & 1 deletion parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"time"

"gopkg.in/redis.v5/internal/proto"
"github.com/go-redis/redis/internal/proto"
)

// Implements proto.MultiBulkParse
Expand Down
2 changes: 1 addition & 1 deletion pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"sync"

"gopkg.in/redis.v5/internal/pool"
"github.com/go-redis/redis/internal/pool"
)

type pipelineExecer func([]Cmder) error
Expand Down
2 changes: 1 addition & 1 deletion pipeline_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package redis_test

import (
"gopkg.in/redis.v5"
"github.com/go-redis/redis"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down
4 changes: 2 additions & 2 deletions pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package redis_test
import (
"time"

"github.com/go-redis/redis"

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

"gopkg.in/redis.v5"
)

var _ = Describe("pool", func() {
Expand Down
4 changes: 2 additions & 2 deletions pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"sync"
"time"

"gopkg.in/redis.v5/internal"
"gopkg.in/redis.v5/internal/pool"
"github.com/go-redis/redis/internal"
"github.com/go-redis/redis/internal/pool"
)

// PubSub implements Pub/Sub commands as described in
Expand Down
2 changes: 1 addition & 1 deletion pubsub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync"
"time"

"gopkg.in/redis.v5"
"github.com/go-redis/redis"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down
4 changes: 2 additions & 2 deletions race_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"testing"
"time"

"github.com/go-redis/redis"

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

"gopkg.in/redis.v5"
)

var _ = Describe("races", func() {
Expand Down
8 changes: 4 additions & 4 deletions redis.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package redis // import "gopkg.in/redis.v5"
package redis

import (
"fmt"
"log"
"time"

"gopkg.in/redis.v5/internal"
"gopkg.in/redis.v5/internal/pool"
"gopkg.in/redis.v5/internal/proto"
"github.com/go-redis/redis/internal"
"github.com/go-redis/redis/internal/pool"
"github.com/go-redis/redis/internal/proto"
)

// Redis nil reply, .e.g. when key does not exist.
Expand Down
2 changes: 1 addition & 1 deletion redis_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package redis
import (
"context"

"gopkg.in/redis.v5/internal/pool"
"github.com/go-redis/redis/internal/pool"
)

type baseClient struct {
Expand Down
2 changes: 1 addition & 1 deletion redis_no_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package redis

import (
"gopkg.in/redis.v5/internal/pool"
"github.com/go-redis/redis/internal/pool"
)

type baseClient struct {
Expand Down
2 changes: 1 addition & 1 deletion redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net"
"time"

"gopkg.in/redis.v5"
"github.com/go-redis/redis"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down
8 changes: 4 additions & 4 deletions ring.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"sync/atomic"
"time"

"gopkg.in/redis.v5/internal"
"gopkg.in/redis.v5/internal/consistenthash"
"gopkg.in/redis.v5/internal/hashtag"
"gopkg.in/redis.v5/internal/pool"
"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"
)

var errRingShardsDown = errors.New("redis: all ring shards are down")
Expand Down
4 changes: 2 additions & 2 deletions ring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"fmt"
"time"

"github.com/go-redis/redis"

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

"gopkg.in/redis.v5"
)

var _ = Describe("Redis Ring", func() {
Expand Down
4 changes: 2 additions & 2 deletions sentinel.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"sync"
"time"

"gopkg.in/redis.v5/internal"
"gopkg.in/redis.v5/internal/pool"
"github.com/go-redis/redis/internal"
"github.com/go-redis/redis/internal/pool"
)

//------------------------------------------------------------------------------
Expand Down
Loading

0 comments on commit 8040d63

Please sign in to comment.