Skip to content

Commit

Permalink
update go.mod for v2 (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
mangalaman93 authored Oct 22, 2024
1 parent 25f8c56 commit c75fa17
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 20 deletions.
2 changes: 1 addition & 1 deletion cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"time"
"unsafe"

"github.com/dgraph-io/ristretto/z"
"github.com/dgraph-io/ristretto/v2/z"
)

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

"github.com/dgraph-io/ristretto/z"
"github.com/dgraph-io/ristretto/v2/z"
"github.com/stretchr/testify/require"
)

Expand Down
3 changes: 2 additions & 1 deletion contrib/demo/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"fmt"
"runtime"

"github.com/dgraph-io/ristretto/z"
"github.com/dustin/go-humanize"

"github.com/dgraph-io/ristretto/v2/z"
)

type node struct {
Expand Down
2 changes: 1 addition & 1 deletion contrib/demo/node_allocator.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package main
import (
"unsafe"

"github.com/dgraph-io/ristretto/z"
"github.com/dgraph-io/ristretto/v2/z"
)

// Defined in node.go.
Expand Down
2 changes: 1 addition & 1 deletion contrib/demo/node_jemalloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package main
import (
"unsafe"

"github.com/dgraph-io/ristretto/z"
"github.com/dgraph-io/ristretto/v2/z"
)

func newNode(val int) *node {
Expand Down
2 changes: 1 addition & 1 deletion contrib/memtest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (

"github.com/dustin/go-humanize"

"github.com/dgraph-io/ristretto/z"
"github.com/dgraph-io/ristretto/v2/z"
)

type S struct {
Expand Down
2 changes: 1 addition & 1 deletion contrib/memtest/withjemalloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package main
import (
"log"

"github.com/dgraph-io/ristretto/z"
"github.com/dgraph-io/ristretto/v2/z"
)

func Calloc(size int) []byte { return z.Calloc(size, "memtest") }
Expand Down
9 changes: 1 addition & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/dgraph-io/ristretto
module github.com/dgraph-io/ristretto/v2

go 1.23

Expand All @@ -16,10 +16,3 @@ require (
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

// we retract v1.0.0 because v0.2.0 is not backwards compatible with v1.0.0.
// The users should upgrade to v2.0.0 instead once released.
retract v1.0.0

// need to retract the next release as well
retract v1.0.1
2 changes: 1 addition & 1 deletion policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"sync"
"sync/atomic"

"github.com/dgraph-io/ristretto/z"
"github.com/dgraph-io/ristretto/v2/z"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/dgraph-io/ristretto/z"
"github.com/dgraph-io/ristretto/v2/z"
"github.com/stretchr/testify/require"
)

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

"github.com/dgraph-io/ristretto/sim"
"github.com/dgraph-io/ristretto/v2/sim"
"github.com/stretchr/testify/require"
)

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

"github.com/dgraph-io/ristretto/z/simd"
"github.com/dgraph-io/ristretto/v2/z/simd"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion z/btree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ import (
"testing"
"time"

"github.com/dgraph-io/ristretto/z/simd"
"github.com/dustin/go-humanize"
"github.com/stretchr/testify/require"

"github.com/dgraph-io/ristretto/v2/z/simd"
)

var tmp int
Expand Down

0 comments on commit c75fa17

Please sign in to comment.