diff --git a/README.md b/README.md index 92132c742..5779cb6bd 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ few months. The [Changelog] is kept fairly up-to-date. To start using Badger, install Go 1.11 or above and run `go get`: ```sh -$ go get github.com/dgraph-io/badger/v2/... +$ go get github.com/dgraph-io/badger/... ``` This will retrieve the library and install the `badger` command line @@ -76,7 +76,7 @@ package main import ( "log" - badger "github.com/dgraph-io/badger/v2" + badger "github.com/dgraph-io/badger" ) func main() { diff --git a/appveyor.yml b/appveyor.yml index 395c1a2f7..afa54ca0a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -34,8 +34,8 @@ build_script: test_script: # Unit tests - ps: Add-AppveyorTest "Unit Tests" -Outcome Running - - go test -v github.com/dgraph-io/badger/v2/... - - go test -v -vlog_mmap=false github.com/dgraph-io/badger/v2/... + - go test -v github.com/dgraph-io/badger/... + - go test -v -vlog_mmap=false github.com/dgraph-io/badger/... - ps: Update-AppveyorTest "Unit Tests" -Outcome Passed notifications: diff --git a/backup.go b/backup.go index c90b2b687..fe62aa611 100644 --- a/backup.go +++ b/backup.go @@ -23,8 +23,8 @@ import ( "encoding/binary" "io" - "github.com/dgraph-io/badger/v2/pb" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/pb" + "github.com/dgraph-io/badger/y" ) // Backup is a wrapper function over Stream.Backup to generate full and incremental backups of the diff --git a/backup_test.go b/backup_test.go index 31b7cd95f..4d0bbd91e 100644 --- a/backup_test.go +++ b/backup_test.go @@ -28,7 +28,7 @@ import ( "testing" "time" - "github.com/dgraph-io/badger/v2/pb" + "github.com/dgraph-io/badger/pb" "github.com/stretchr/testify/require" ) diff --git a/badger/cmd/backup.go b/badger/cmd/backup.go index 79fa9fd49..567eecccd 100644 --- a/badger/cmd/backup.go +++ b/badger/cmd/backup.go @@ -20,8 +20,8 @@ import ( "bufio" "os" - "github.com/dgraph-io/badger/v2" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger" + "github.com/dgraph-io/badger/y" "github.com/spf13/cobra" ) diff --git a/badger/cmd/bank.go b/badger/cmd/bank.go index e8144a5ae..8fbc77df4 100644 --- a/badger/cmd/bank.go +++ b/badger/cmd/bank.go @@ -30,10 +30,10 @@ import ( "sync/atomic" "time" - "github.com/dgraph-io/badger/v2" - "github.com/dgraph-io/badger/v2/options" - "github.com/dgraph-io/badger/v2/pb" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger" + "github.com/dgraph-io/badger/options" + "github.com/dgraph-io/badger/pb" + "github.com/dgraph-io/badger/y" "github.com/spf13/cobra" ) diff --git a/badger/cmd/flatten.go b/badger/cmd/flatten.go index 1882cb99c..f2375d77e 100644 --- a/badger/cmd/flatten.go +++ b/badger/cmd/flatten.go @@ -17,7 +17,7 @@ package cmd import ( - "github.com/dgraph-io/badger/v2" + "github.com/dgraph-io/badger" "github.com/spf13/cobra" ) diff --git a/badger/cmd/info.go b/badger/cmd/info.go index 420d2e3b3..601a10ed7 100644 --- a/badger/cmd/info.go +++ b/badger/cmd/info.go @@ -29,10 +29,10 @@ import ( "github.com/pkg/errors" - "github.com/dgraph-io/badger/v2" - "github.com/dgraph-io/badger/v2/options" - "github.com/dgraph-io/badger/v2/table" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger" + "github.com/dgraph-io/badger/options" + "github.com/dgraph-io/badger/table" + "github.com/dgraph-io/badger/y" humanize "github.com/dustin/go-humanize" "github.com/spf13/cobra" ) diff --git a/badger/cmd/read_bench.go b/badger/cmd/read_bench.go index b26a1fb27..abe5d4e23 100644 --- a/badger/cmd/read_bench.go +++ b/badger/cmd/read_bench.go @@ -27,10 +27,10 @@ import ( humanize "github.com/dustin/go-humanize" "github.com/spf13/cobra" - "github.com/dgraph-io/badger/v2" - "github.com/dgraph-io/badger/v2/options" - "github.com/dgraph-io/badger/v2/pb" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger" + "github.com/dgraph-io/badger/options" + "github.com/dgraph-io/badger/pb" + "github.com/dgraph-io/badger/y" ) var readBenchCmd = &cobra.Command{ diff --git a/badger/cmd/restore.go b/badger/cmd/restore.go index d5ee8f5f4..af7364b09 100644 --- a/badger/cmd/restore.go +++ b/badger/cmd/restore.go @@ -21,7 +21,7 @@ import ( "os" "path" - "github.com/dgraph-io/badger/v2" + "github.com/dgraph-io/badger" "github.com/spf13/cobra" ) diff --git a/badger/cmd/write_bench.go b/badger/cmd/write_bench.go index d7d26aadb..a84027e34 100644 --- a/badger/cmd/write_bench.go +++ b/badger/cmd/write_bench.go @@ -28,9 +28,9 @@ import ( humanize "github.com/dustin/go-humanize" "github.com/spf13/cobra" - "github.com/dgraph-io/badger/v2" - "github.com/dgraph-io/badger/v2/pb" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger" + "github.com/dgraph-io/badger/pb" + "github.com/dgraph-io/badger/y" ) var writeBenchCmd = &cobra.Command{ diff --git a/badger/main.go b/badger/main.go index 7542f1e17..e03affc24 100644 --- a/badger/main.go +++ b/badger/main.go @@ -22,7 +22,7 @@ import ( _ "net/http/pprof" "runtime" - "github.com/dgraph-io/badger/v2/badger/cmd" + "github.com/dgraph-io/badger/badger/cmd" ) func main() { diff --git a/batch.go b/batch.go index abeee15f6..c94e0fed4 100644 --- a/batch.go +++ b/batch.go @@ -19,7 +19,7 @@ package badger import ( "sync" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/y" ) // WriteBatch holds the necessary info to perform batched writes. diff --git a/compaction.go b/compaction.go index ff01b8e89..931d56664 100644 --- a/compaction.go +++ b/compaction.go @@ -25,8 +25,8 @@ import ( "golang.org/x/net/trace" - "github.com/dgraph-io/badger/v2/table" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/table" + "github.com/dgraph-io/badger/y" ) type keyRange struct { diff --git a/db.go b/db.go index 5ff99f2f6..4fbb41590 100644 --- a/db.go +++ b/db.go @@ -32,11 +32,11 @@ import ( "sync/atomic" "time" - "github.com/dgraph-io/badger/v2/options" - "github.com/dgraph-io/badger/v2/pb" - "github.com/dgraph-io/badger/v2/skl" - "github.com/dgraph-io/badger/v2/table" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/options" + "github.com/dgraph-io/badger/pb" + "github.com/dgraph-io/badger/skl" + "github.com/dgraph-io/badger/table" + "github.com/dgraph-io/badger/y" humanize "github.com/dustin/go-humanize" "github.com/pkg/errors" "golang.org/x/net/trace" diff --git a/db_test.go b/db_test.go index 1d1110ecc..5980a990a 100644 --- a/db_test.go +++ b/db_test.go @@ -35,11 +35,11 @@ import ( "testing" "time" - "github.com/dgraph-io/badger/v2/options" - "github.com/dgraph-io/badger/v2/pb" - "github.com/dgraph-io/badger/v2/skl" + "github.com/dgraph-io/badger/options" + "github.com/dgraph-io/badger/pb" + "github.com/dgraph-io/badger/skl" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/y" "github.com/stretchr/testify/require" ) diff --git a/go.mod b/go.mod deleted file mode 100644 index 0a3d14bb8..000000000 --- a/go.mod +++ /dev/null @@ -1,18 +0,0 @@ -module github.com/dgraph-io/badger/v2 - -require ( - github.com/AndreasBriese/bbloom v0.0.0-20180913140656-343706a395b7 - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/dgryski/go-farm v0.0.0-20180109070241-2de33835d102 - github.com/dustin/go-humanize v1.0.0 - github.com/golang/protobuf v1.2.0 - github.com/inconshreveable/mousetrap v1.0.0 // indirect - github.com/pkg/errors v0.8.0 - github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/spf13/cobra v0.0.3 - github.com/spf13/pflag v1.0.3 // indirect - github.com/stretchr/testify v1.2.2 - golang.org/x/net v0.0.0-20181217023233-e147a9138326 - golang.org/x/sync v0.0.0-20190423024810-112230192c58 // indirect - golang.org/x/sys v0.0.0-20181218192612-074acd46bca6 -) diff --git a/go.sum b/go.sum deleted file mode 100644 index 31231b097..000000000 --- a/go.sum +++ /dev/null @@ -1,28 +0,0 @@ -github.com/AndreasBriese/bbloom v0.0.0-20180913140656-343706a395b7 h1:PqzgE6kAMi81xWQA2QIVxjWkFHptGgC547vchpUbtFo= -github.com/AndreasBriese/bbloom v0.0.0-20180913140656-343706a395b7/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dgryski/go-farm v0.0.0-20180109070241-2de33835d102 h1:afESQBXJEnj3fu+34X//E8Wg3nEbMJxJkwSc0tPePK0= -github.com/dgryski/go-farm v0.0.0-20180109070241-2de33835d102/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= -github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo= -github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= -github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/spf13/cobra v0.0.3 h1:ZlrZ4XsMRm04Fr5pSFxBgfND2EBVa1nLpiy1stUsX/8= -github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= -github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg= -github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -golang.org/x/net v0.0.0-20181217023233-e147a9138326 h1:iCzOf0xz39Tstp+Tu/WwyGjUXCk34QhQORRxBeXXTA4= -golang.org/x/net v0.0.0-20181217023233-e147a9138326/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20181218192612-074acd46bca6 h1:MXtOG7w2ND9qNCUZSDBGll/SpVIq7ftozR9I8/JGBHY= -golang.org/x/sys v0.0.0-20181218192612-074acd46bca6/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= diff --git a/integration/testgc/main.go b/integration/testgc/main.go index 4afc46cd4..20aff5b9e 100644 --- a/integration/testgc/main.go +++ b/integration/testgc/main.go @@ -12,9 +12,9 @@ import ( "sync/atomic" "time" - "github.com/dgraph-io/badger/v2" - "github.com/dgraph-io/badger/v2/options" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger" + "github.com/dgraph-io/badger/options" + "github.com/dgraph-io/badger/y" ) var maxValue int64 = 10000000 diff --git a/iterator.go b/iterator.go index 686bb7ea3..f4af4058d 100644 --- a/iterator.go +++ b/iterator.go @@ -24,10 +24,10 @@ import ( "sync/atomic" "time" - "github.com/dgraph-io/badger/v2/options" - "github.com/dgraph-io/badger/v2/table" + "github.com/dgraph-io/badger/options" + "github.com/dgraph-io/badger/table" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/y" ) type prefetchStatus uint8 diff --git a/iterator_test.go b/iterator_test.go index de6640cab..d0a766a45 100644 --- a/iterator_test.go +++ b/iterator_test.go @@ -26,8 +26,8 @@ import ( "strings" "testing" - "github.com/dgraph-io/badger/v2/options" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/options" + "github.com/dgraph-io/badger/y" "github.com/stretchr/testify/require" ) @@ -162,7 +162,7 @@ func TestIteratePrefix(t *testing.T) { // Benchmark with NO opt.Prefix set === // goos: linux // goarch: amd64 -// pkg: github.com/dgraph-io/badger/v2 +// pkg: github.com/dgraph-io/badger // BenchmarkIteratePrefixSingleKey/Key_lookups-4 10000 460924 ns/op // --- BENCH: BenchmarkIteratePrefixSingleKey/Key_lookups-4 // iterator_test.go:147: Inner b.N: 1 diff --git a/level_handler.go b/level_handler.go index e88050800..147967fb8 100644 --- a/level_handler.go +++ b/level_handler.go @@ -21,8 +21,8 @@ import ( "sort" "sync" - "github.com/dgraph-io/badger/v2/table" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/table" + "github.com/dgraph-io/badger/y" "github.com/pkg/errors" ) diff --git a/levels.go b/levels.go index 4ec6f320c..a4efd6624 100644 --- a/levels.go +++ b/levels.go @@ -30,9 +30,9 @@ import ( "golang.org/x/net/trace" - "github.com/dgraph-io/badger/v2/pb" - "github.com/dgraph-io/badger/v2/table" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/pb" + "github.com/dgraph-io/badger/table" + "github.com/dgraph-io/badger/y" "github.com/pkg/errors" ) diff --git a/managed_db_test.go b/managed_db_test.go index 5e679f285..ea059e06d 100644 --- a/managed_db_test.go +++ b/managed_db_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/y" "github.com/stretchr/testify/require" ) diff --git a/manifest.go b/manifest.go index aaf9424dd..a58188294 100644 --- a/manifest.go +++ b/manifest.go @@ -27,8 +27,8 @@ import ( "path/filepath" "sync" - "github.com/dgraph-io/badger/v2/pb" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/pb" + "github.com/dgraph-io/badger/y" "github.com/pkg/errors" ) diff --git a/manifest_test.go b/manifest_test.go index c6dcf7d93..f4008f1e5 100644 --- a/manifest_test.go +++ b/manifest_test.go @@ -27,10 +27,10 @@ import ( "golang.org/x/net/trace" - "github.com/dgraph-io/badger/v2/options" - "github.com/dgraph-io/badger/v2/pb" - "github.com/dgraph-io/badger/v2/table" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/options" + "github.com/dgraph-io/badger/pb" + "github.com/dgraph-io/badger/table" + "github.com/dgraph-io/badger/y" "github.com/stretchr/testify/require" ) diff --git a/merge.go b/merge.go index 569b297d7..02ad4bcde 100644 --- a/merge.go +++ b/merge.go @@ -20,7 +20,7 @@ import ( "sync" "time" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/y" "github.com/pkg/errors" ) diff --git a/options.go b/options.go index 4d25a8772..b91fdc5e3 100644 --- a/options.go +++ b/options.go @@ -17,7 +17,7 @@ package badger import ( - "github.com/dgraph-io/badger/v2/options" + "github.com/dgraph-io/badger/options" ) // Note: If you add a new option X make sure you also add a WithX method on Options. diff --git a/publisher.go b/publisher.go index cfc816196..24588f5c6 100644 --- a/publisher.go +++ b/publisher.go @@ -20,8 +20,8 @@ import ( "bytes" "sync" - "github.com/dgraph-io/badger/v2/pb" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/pb" + "github.com/dgraph-io/badger/y" ) type subscriber struct { diff --git a/publisher_test.go b/publisher_test.go index b0433db70..18127e388 100644 --- a/publisher_test.go +++ b/publisher_test.go @@ -23,7 +23,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/dgraph-io/badger/v2/pb" + "github.com/dgraph-io/badger/pb" ) func TestPublisherOrdering(t *testing.T) { diff --git a/skl/README.md b/skl/README.md index 92fa68bb5..e22e4590b 100644 --- a/skl/README.md +++ b/skl/README.md @@ -110,4 +110,4 @@ Showing top 10 nodes out of 41 (cum >= 185.62MB) 0 signals received 46434 voluntary context switches 597049 involuntary context switches -``` \ No newline at end of file +``` diff --git a/skl/arena.go b/skl/arena.go index dda3b7b85..def550712 100644 --- a/skl/arena.go +++ b/skl/arena.go @@ -20,7 +20,7 @@ import ( "sync/atomic" "unsafe" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/y" ) const ( diff --git a/skl/skl.go b/skl/skl.go index 2ad88757d..fc2eff982 100644 --- a/skl/skl.go +++ b/skl/skl.go @@ -38,7 +38,7 @@ import ( "sync/atomic" "unsafe" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/y" ) const ( diff --git a/skl/skl_test.go b/skl/skl_test.go index 8ed2b5765..b0849f386 100644 --- a/skl/skl_test.go +++ b/skl/skl_test.go @@ -28,7 +28,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/y" ) const arenaSize = 1 << 20 diff --git a/stream.go b/stream.go index 66011ad93..f0841a6a4 100644 --- a/stream.go +++ b/stream.go @@ -24,8 +24,8 @@ import ( "sync/atomic" "time" - "github.com/dgraph-io/badger/v2/pb" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/pb" + "github.com/dgraph-io/badger/y" humanize "github.com/dustin/go-humanize" ) diff --git a/stream_test.go b/stream_test.go index 33c00df39..9245576a2 100644 --- a/stream_test.go +++ b/stream_test.go @@ -26,8 +26,8 @@ import ( "strings" "testing" - bpb "github.com/dgraph-io/badger/v2/pb" - "github.com/dgraph-io/badger/v2/y" + bpb "github.com/dgraph-io/badger/pb" + "github.com/dgraph-io/badger/y" "github.com/stretchr/testify/require" ) diff --git a/stream_writer.go b/stream_writer.go index 2c4242089..b134f87cd 100644 --- a/stream_writer.go +++ b/stream_writer.go @@ -19,9 +19,9 @@ package badger import ( "math" - "github.com/dgraph-io/badger/v2/pb" - "github.com/dgraph-io/badger/v2/table" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/pb" + "github.com/dgraph-io/badger/table" + "github.com/dgraph-io/badger/y" humanize "github.com/dustin/go-humanize" "github.com/pkg/errors" ) diff --git a/stream_writer_test.go b/stream_writer_test.go index cec2df50f..141bee877 100644 --- a/stream_writer_test.go +++ b/stream_writer_test.go @@ -26,8 +26,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/dgraph-io/badger/v2/pb" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/pb" + "github.com/dgraph-io/badger/y" ) func getSortedKVList(valueSize, listSize int) *pb.KVList { diff --git a/structs.go b/structs.go index 47ed5bf21..51d16cdb2 100644 --- a/structs.go +++ b/structs.go @@ -7,7 +7,7 @@ import ( "hash/crc32" "time" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/y" ) type valuePointer struct { diff --git a/table/builder.go b/table/builder.go index a3cda8765..0657cbca1 100644 --- a/table/builder.go +++ b/table/builder.go @@ -23,7 +23,7 @@ import ( "math" "github.com/AndreasBriese/bbloom" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/y" ) var ( diff --git a/table/iterator.go b/table/iterator.go index 9f1fb7998..0eb5ed01a 100644 --- a/table/iterator.go +++ b/table/iterator.go @@ -22,7 +22,7 @@ import ( "math" "sort" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/y" "github.com/pkg/errors" ) diff --git a/table/table.go b/table/table.go index 9fc6162d9..0a1f42d46 100644 --- a/table/table.go +++ b/table/table.go @@ -31,8 +31,8 @@ import ( "sync/atomic" "github.com/AndreasBriese/bbloom" - "github.com/dgraph-io/badger/v2/options" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/options" + "github.com/dgraph-io/badger/y" "github.com/pkg/errors" ) diff --git a/table/table_test.go b/table/table_test.go index d135c103f..3e95b1086 100644 --- a/table/table_test.go +++ b/table/table_test.go @@ -25,8 +25,8 @@ import ( "testing" "time" - "github.com/dgraph-io/badger/v2/options" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/options" + "github.com/dgraph-io/badger/y" "github.com/stretchr/testify/require" ) diff --git a/txn.go b/txn.go index f09a09bd7..67411a8f5 100644 --- a/txn.go +++ b/txn.go @@ -26,7 +26,7 @@ import ( "sync" "sync/atomic" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/y" farm "github.com/dgryski/go-farm" "github.com/pkg/errors" ) diff --git a/txn_test.go b/txn_test.go index 7a3c12543..4c3f2e5ef 100644 --- a/txn_test.go +++ b/txn_test.go @@ -26,8 +26,8 @@ import ( "testing" "time" - "github.com/dgraph-io/badger/v2/options" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/options" + "github.com/dgraph-io/badger/y" "github.com/stretchr/testify/require" ) diff --git a/util.go b/util.go index b7f173dd3..c5173e26c 100644 --- a/util.go +++ b/util.go @@ -23,8 +23,8 @@ import ( "sync/atomic" "time" - "github.com/dgraph-io/badger/v2/table" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/table" + "github.com/dgraph-io/badger/y" "github.com/pkg/errors" ) diff --git a/value.go b/value.go index c451f0315..f57f1b3ba 100644 --- a/value.go +++ b/value.go @@ -35,8 +35,8 @@ import ( "sync/atomic" "time" - "github.com/dgraph-io/badger/v2/options" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/options" + "github.com/dgraph-io/badger/y" "github.com/pkg/errors" "golang.org/x/net/trace" ) diff --git a/value_test.go b/value_test.go index 08a96f6e9..474b30e75 100644 --- a/value_test.go +++ b/value_test.go @@ -26,8 +26,8 @@ import ( "testing" "time" - "github.com/dgraph-io/badger/v2/options" - "github.com/dgraph-io/badger/v2/y" + "github.com/dgraph-io/badger/options" + "github.com/dgraph-io/badger/y" humanize "github.com/dustin/go-humanize" "github.com/stretchr/testify/require" "golang.org/x/net/trace"