Remove gopkg.in

This commit is contained in:
Vladimir Mihailenco 2017-02-18 16:42:34 +02:00
parent d95ce53b0d
commit 8040d63c4f
39 changed files with 64 additions and 66 deletions

View File

@ -6,8 +6,8 @@ services:
go: go:
- 1.4 - 1.4
- 1.6
- 1.7 - 1.7
- 1.8
- tip - tip
matrix: matrix:
@ -18,5 +18,3 @@ matrix:
install: install:
- go get github.com/onsi/ginkgo - go get github.com/onsi/ginkgo
- go get github.com/onsi/gomega - go get github.com/onsi/gomega
- mkdir -p $HOME/gopath/src/gopkg.in
- mv `pwd` $HOME/gopath/src/gopkg.in/redis.v5

View File

@ -5,7 +5,7 @@ import (
"testing" "testing"
"time" "time"
"gopkg.in/redis.v5" "github.com/go-redis/redis"
) )
func benchmarkRedisClient(poolSize int) *redis.Client { func benchmarkRedisClient(poolSize int) *redis.Client {

View File

@ -7,10 +7,10 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"gopkg.in/redis.v5/internal" "github.com/go-redis/redis/internal"
"gopkg.in/redis.v5/internal/hashtag" "github.com/go-redis/redis/internal/hashtag"
"gopkg.in/redis.v5/internal/pool" "github.com/go-redis/redis/internal/pool"
"gopkg.in/redis.v5/internal/proto" "github.com/go-redis/redis/internal/proto"
) )
var errClusterNoNodes = internal.RedisError("redis: cluster has no nodes") var errClusterNoNodes = internal.RedisError("redis: cluster has no nodes")

View File

@ -9,8 +9,8 @@ import (
"testing" "testing"
"time" "time"
"gopkg.in/redis.v5" "github.com/go-redis/redis"
"gopkg.in/redis.v5/internal/hashtag" "github.com/go-redis/redis/internal/hashtag"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"

View File

@ -7,9 +7,9 @@ import (
"strings" "strings"
"time" "time"
"gopkg.in/redis.v5/internal" "github.com/go-redis/redis/internal"
"gopkg.in/redis.v5/internal/pool" "github.com/go-redis/redis/internal/pool"
"gopkg.in/redis.v5/internal/proto" "github.com/go-redis/redis/internal/proto"
) )
var ( var (

View File

@ -1,10 +1,10 @@
package redis_test package redis_test
import ( import (
"github.com/go-redis/redis"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v5"
) )
var _ = Describe("Cmd", func() { var _ = Describe("Cmd", func() {

View File

@ -5,7 +5,7 @@ import (
"strconv" "strconv"
"time" "time"
"gopkg.in/redis.v5/internal" "github.com/go-redis/redis/internal"
) )
func readTimeout(timeout time.Duration) time.Duration { func readTimeout(timeout time.Duration) time.Duration {

View File

@ -9,7 +9,7 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v5" "github.com/go-redis/redis"
) )
var _ = Describe("Commands", func() { var _ = Describe("Commands", func() {

View File

@ -5,7 +5,7 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
redis "gopkg.in/redis.v5" "github.com/go-redis/redis"
) )
func Example_instrumentation() { func Example_instrumentation() {

View File

@ -6,7 +6,7 @@ import (
"sync" "sync"
"time" "time"
"gopkg.in/redis.v5" "github.com/go-redis/redis"
) )
var client *redis.Client var client *redis.Client

View File

@ -3,7 +3,7 @@ package redis
import ( import (
"time" "time"
"gopkg.in/redis.v5/internal/pool" "github.com/go-redis/redis/internal/pool"
) )
func (c *baseClient) Pool() pool.Pooler { func (c *baseClient) Pool() pool.Pooler {

View File

@ -5,7 +5,7 @@ import (
"testing" "testing"
"time" "time"
"gopkg.in/redis.v5/internal/pool" "github.com/go-redis/redis/internal/pool"
) )
func benchmarkPoolGetPut(b *testing.B, poolSize int) { func benchmarkPoolGetPut(b *testing.B, poolSize int) {

View File

@ -5,7 +5,7 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"gopkg.in/redis.v5/internal/proto" "github.com/go-redis/redis/internal/proto"
) )
var noDeadline = time.Time{} var noDeadline = time.Time{}

View File

@ -8,7 +8,7 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"gopkg.in/redis.v5/internal" "github.com/go-redis/redis/internal"
) )
var ( var (

View File

@ -5,10 +5,10 @@ import (
"testing" "testing"
"time" "time"
"github.com/go-redis/redis/internal/pool"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v5/internal/pool"
) )
var _ = Describe("ConnPool", func() { var _ = Describe("ConnPool", func() {

View File

@ -6,7 +6,7 @@ import (
"io" "io"
"strconv" "strconv"
"gopkg.in/redis.v5/internal" "github.com/go-redis/redis/internal"
) )
const bytesAllocLimit = 1024 * 1024 // 1mb const bytesAllocLimit = 1024 * 1024 // 1mb

View File

@ -5,7 +5,7 @@ import (
"strings" "strings"
"testing" "testing"
"gopkg.in/redis.v5/internal/proto" "github.com/go-redis/redis/internal/proto"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"reflect" "reflect"
"gopkg.in/redis.v5/internal" "github.com/go-redis/redis/internal"
) )
func Scan(b []byte, v interface{}) error { func Scan(b []byte, v interface{}) error {

View File

@ -4,7 +4,7 @@ import (
"testing" "testing"
"time" "time"
"gopkg.in/redis.v5/internal/proto" "github.com/go-redis/redis/internal/proto"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"

View File

@ -3,10 +3,10 @@ package redis_test
import ( import (
"fmt" "fmt"
"github.com/go-redis/redis"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v5"
) )
var _ = Describe("ScanIterator", func() { var _ = Describe("ScanIterator", func() {

View File

@ -12,10 +12,10 @@ import (
"testing" "testing"
"time" "time"
"github.com/go-redis/redis"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v5"
) )
const ( const (
@ -95,7 +95,7 @@ var _ = AfterSuite(func() {
func TestGinkgoSuite(t *testing.T) { func TestGinkgoSuite(t *testing.T) {
RegisterFailHandler(Fail) RegisterFailHandler(Fail)
RunSpecs(t, "gopkg.in/redis.v5") RunSpecs(t, "go-redis")
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------

View File

@ -10,7 +10,7 @@ import (
"strings" "strings"
"time" "time"
"gopkg.in/redis.v5/internal/pool" "github.com/go-redis/redis/internal/pool"
) )
type Options struct { type Options struct {

View File

@ -6,7 +6,7 @@ import (
"strconv" "strconv"
"time" "time"
"gopkg.in/redis.v5/internal/proto" "github.com/go-redis/redis/internal/proto"
) )
// Implements proto.MultiBulkParse // Implements proto.MultiBulkParse

View File

@ -4,7 +4,7 @@ import (
"errors" "errors"
"sync" "sync"
"gopkg.in/redis.v5/internal/pool" "github.com/go-redis/redis/internal/pool"
) )
type pipelineExecer func([]Cmder) error type pipelineExecer func([]Cmder) error

View File

@ -1,7 +1,7 @@
package redis_test package redis_test
import ( import (
"gopkg.in/redis.v5" "github.com/go-redis/redis"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"

View File

@ -3,10 +3,10 @@ package redis_test
import ( import (
"time" "time"
"github.com/go-redis/redis"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v5"
) )
var _ = Describe("pool", func() { var _ = Describe("pool", func() {

View File

@ -6,8 +6,8 @@ import (
"sync" "sync"
"time" "time"
"gopkg.in/redis.v5/internal" "github.com/go-redis/redis/internal"
"gopkg.in/redis.v5/internal/pool" "github.com/go-redis/redis/internal/pool"
) )
// PubSub implements Pub/Sub commands as described in // PubSub implements Pub/Sub commands as described in

View File

@ -6,7 +6,7 @@ import (
"sync" "sync"
"time" "time"
"gopkg.in/redis.v5" "github.com/go-redis/redis"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"

View File

@ -8,10 +8,10 @@ import (
"testing" "testing"
"time" "time"
"github.com/go-redis/redis"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v5"
) )
var _ = Describe("races", func() { var _ = Describe("races", func() {

View File

@ -1,13 +1,13 @@
package redis // import "gopkg.in/redis.v5" package redis
import ( import (
"fmt" "fmt"
"log" "log"
"time" "time"
"gopkg.in/redis.v5/internal" "github.com/go-redis/redis/internal"
"gopkg.in/redis.v5/internal/pool" "github.com/go-redis/redis/internal/pool"
"gopkg.in/redis.v5/internal/proto" "github.com/go-redis/redis/internal/proto"
) )
// Redis nil reply, .e.g. when key does not exist. // Redis nil reply, .e.g. when key does not exist.

View File

@ -5,7 +5,7 @@ package redis
import ( import (
"context" "context"
"gopkg.in/redis.v5/internal/pool" "github.com/go-redis/redis/internal/pool"
) )
type baseClient struct { type baseClient struct {

View File

@ -3,7 +3,7 @@
package redis package redis
import ( import (
"gopkg.in/redis.v5/internal/pool" "github.com/go-redis/redis/internal/pool"
) )
type baseClient struct { type baseClient struct {

View File

@ -5,7 +5,7 @@ import (
"net" "net"
"time" "time"
"gopkg.in/redis.v5" "github.com/go-redis/redis"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"

View File

@ -9,10 +9,10 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"gopkg.in/redis.v5/internal" "github.com/go-redis/redis/internal"
"gopkg.in/redis.v5/internal/consistenthash" "github.com/go-redis/redis/internal/consistenthash"
"gopkg.in/redis.v5/internal/hashtag" "github.com/go-redis/redis/internal/hashtag"
"gopkg.in/redis.v5/internal/pool" "github.com/go-redis/redis/internal/pool"
) )
var errRingShardsDown = errors.New("redis: all ring shards are down") var errRingShardsDown = errors.New("redis: all ring shards are down")

View File

@ -5,10 +5,10 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/go-redis/redis"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v5"
) )
var _ = Describe("Redis Ring", func() { var _ = Describe("Redis Ring", func() {

View File

@ -8,8 +8,8 @@ import (
"sync" "sync"
"time" "time"
"gopkg.in/redis.v5/internal" "github.com/go-redis/redis/internal"
"gopkg.in/redis.v5/internal/pool" "github.com/go-redis/redis/internal/pool"
) )
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------

View File

@ -1,10 +1,10 @@
package redis_test package redis_test
import ( import (
"github.com/go-redis/redis"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v5"
) )
var _ = Describe("Sentinel", func() { var _ = Describe("Sentinel", func() {

4
tx.go
View File

@ -1,8 +1,8 @@
package redis package redis
import ( import (
"gopkg.in/redis.v5/internal" "github.com/go-redis/redis/internal"
"gopkg.in/redis.v5/internal/pool" "github.com/go-redis/redis/internal/pool"
) )
// Redis transaction failed. // Redis transaction failed.

View File

@ -4,10 +4,10 @@ import (
"strconv" "strconv"
"sync" "sync"
"github.com/go-redis/redis"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"gopkg.in/redis.v5"
) )
var _ = Describe("Tx", func() { var _ = Describe("Tx", func() {