Skip to content

Commit

Permalink
go modules: fix for v2
Browse files Browse the repository at this point in the history
The module name must include the major version otherwise the package must be marked as incompatible.
  • Loading branch information
Elliot Chance committed Apr 29, 2019
1 parent 3d7aa13 commit e30ea31
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion cmd_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package miniredis
import (
"strconv"

"github.com/alicebob/miniredis/server"
"github.com/alicebob/miniredis/v2/server"
)

func commandsConnection(m *Miniredis) {
Expand Down
2 changes: 1 addition & 1 deletion cmd_generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"time"

"github.com/alicebob/miniredis/server"
"github.com/alicebob/miniredis/v2/server"
)

// commandsGeneric handles EXPIRE, TTL, PERSIST, &c.
Expand Down
2 changes: 1 addition & 1 deletion cmd_hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"strings"

"github.com/alicebob/miniredis/server"
"github.com/alicebob/miniredis/v2/server"
)

// commandsHash handles all hash value operations.
Expand Down
2 changes: 1 addition & 1 deletion cmd_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/alicebob/miniredis/server"
"github.com/alicebob/miniredis/v2/server"
)

type leftright int
Expand Down
2 changes: 1 addition & 1 deletion cmd_pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"regexp"
"strings"

"github.com/alicebob/miniredis/server"
"github.com/alicebob/miniredis/v2/server"
)

// commandsPubsub handles all PUB/SUB operations.
Expand Down
2 changes: 1 addition & 1 deletion cmd_scripting.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
lua "github.com/yuin/gopher-lua"
"github.com/yuin/gopher-lua/parse"

"github.com/alicebob/miniredis/server"
"github.com/alicebob/miniredis/v2/server"
)

func commandsScripting(m *Miniredis) {
Expand Down
2 changes: 1 addition & 1 deletion cmd_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/alicebob/miniredis/server"
"github.com/alicebob/miniredis/v2/server"
)

func commandsServer(m *Miniredis) {
Expand Down
2 changes: 1 addition & 1 deletion cmd_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strconv"
"strings"

"github.com/alicebob/miniredis/server"
"github.com/alicebob/miniredis/v2/server"
)

// commandsSet handles all set value operations.
Expand Down
2 changes: 1 addition & 1 deletion cmd_sorted_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strconv"
"strings"

"github.com/alicebob/miniredis/server"
"github.com/alicebob/miniredis/v2/server"
)

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

"github.com/alicebob/miniredis/server"
"github.com/alicebob/miniredis/v2/server"
)

// commandsString handles all string value operations.
Expand Down
2 changes: 1 addition & 1 deletion cmd_transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package miniredis

import (
"github.com/alicebob/miniredis/server"
"github.com/alicebob/miniredis/v2/server"
)

// commandsTransaction handles MULTI &c.
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package miniredis_test
import (
"time"

"github.com/alicebob/miniredis"
"github.com/alicebob/miniredis/v2"
"github.com/gomodule/redigo/redis"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/alicebob/miniredis
module github.com/alicebob/miniredis/v2

require (
github.com/alicebob/gopher-json v0.0.0-20180125190556-5a6b3ba71ee6
Expand Down
2 changes: 1 addition & 1 deletion integration/generic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/alicebob/miniredis"
"github.com/alicebob/miniredis/v2"
)

func TestEcho(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion integration/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/alicebob/miniredis"
"github.com/alicebob/miniredis/v2"
)

func TestLPush(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion integration/pubsub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sync"
"testing"

"github.com/alicebob/miniredis"
"github.com/alicebob/miniredis/v2"
)

func TestSubscribe(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion integration/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"sync"
"testing"

"github.com/alicebob/miniredis"
"github.com/alicebob/miniredis/v2"
"github.com/gomodule/redigo/redis"
)

Expand Down
2 changes: 1 addition & 1 deletion lua.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
redigo "github.com/gomodule/redigo/redis"
lua "github.com/yuin/gopher-lua"

"github.com/alicebob/miniredis/server"
"github.com/alicebob/miniredis/v2/server"
)

func mkLuaFuncs(conn redigo.Conn) map[string]lua.LGFunction {
Expand Down
2 changes: 1 addition & 1 deletion miniredis.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

redigo "github.com/gomodule/redigo/redis"

"github.com/alicebob/miniredis/server"
"github.com/alicebob/miniredis/v2/server"
)

type hashKey map[string]string
Expand Down
2 changes: 1 addition & 1 deletion pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sort"
"sync"

"github.com/alicebob/miniredis/server"
"github.com/alicebob/miniredis/v2/server"
)

// PubsubMessage is what gets broadcasted over pubsub channels.
Expand Down
2 changes: 1 addition & 1 deletion redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync"
"time"

"github.com/alicebob/miniredis/server"
"github.com/alicebob/miniredis/v2/server"
)

const (
Expand Down

0 comments on commit e30ea31

Please sign in to comment.