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:
- 1.4
- 1.6
- 1.7
- 1.8
- tip
matrix:
@ -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

View File

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

View File

@ -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")

View File

@ -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"

View File

@ -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 (

View File

@ -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() {

View File

@ -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 {

View File

@ -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() {

View File

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

View File

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

View File

@ -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 {

View File

@ -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) {

View File

@ -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{}

View File

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

View File

@ -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() {

View File

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

View File

@ -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"

View File

@ -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 {

View File

@ -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"

View File

@ -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() {

View File

@ -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 (
@ -95,7 +95,7 @@ var _ = AfterSuite(func() {
func TestGinkgoSuite(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "gopkg.in/redis.v5")
RunSpecs(t, "go-redis")
}
//------------------------------------------------------------------------------

View File

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

View File

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

View File

@ -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

View File

@ -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"

View File

@ -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() {

View File

@ -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

View File

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

View File

@ -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() {

View File

@ -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.

View File

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

View File

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

View File

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

View File

@ -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")

View File

@ -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() {

View File

@ -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"
)
//------------------------------------------------------------------------------

View File

@ -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("Sentinel", func() {

4
tx.go
View File

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

View File

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