Skip to content

Commit 41d170b

Browse files
author
Francesc Campoy
authored
Merge pull request #882 from dgraph-io/v2mod
release badger v2.0.0
2 parents 6a824d0 + ad0b5cb commit 41d170b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+96
-96
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: go
22

33
go:
4-
- "1.10"
54
- "1.11"
65
- "1.12"
76

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ few months. The [Changelog] is kept fairly up-to-date.
5252
## Getting Started
5353

5454
### Installing
55-
To start using Badger, install Go 1.8 or above and run `go get`:
55+
To start using Badger, install Go 1.11 or above and run `go get`:
5656

5757
```sh
58-
$ go get github.com/dgraph-io/badger/...
58+
$ go get github.com/dgraph-io/badger/v2/...
5959
```
6060

6161
This will retrieve the library and install the `badger` command line
@@ -76,7 +76,7 @@ package main
7676
import (
7777
"log"
7878

79-
"github.com/dgraph-io/badger"
79+
badger "github.com/dgraph-io/badger/v2"
8080
)
8181

8282
func main() {

appveyor.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ clone_folder: c:\gopath\src\github.com\dgraph-io\badger
1313
environment:
1414
GOVERSION: 1.8.3
1515
GOPATH: c:\gopath
16+
GO111MODULE: on
1617

1718
# scripts that run after cloning repository
1819
install:
@@ -33,8 +34,8 @@ build_script:
3334
test_script:
3435
# Unit tests
3536
- ps: Add-AppveyorTest "Unit Tests" -Outcome Running
36-
- go test -v github.com/dgraph-io/badger/...
37-
- go test -v -vlog_mmap=false github.com/dgraph-io/badger/...
37+
- go test -v github.com/dgraph-io/badger/v2/...
38+
- go test -v -vlog_mmap=false github.com/dgraph-io/badger/v2/...
3839
- ps: Update-AppveyorTest "Unit Tests" -Outcome Passed
3940

4041
notifications:

backup.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import (
2323
"encoding/binary"
2424
"io"
2525

26-
"github.com/dgraph-io/badger/pb"
27-
"github.com/dgraph-io/badger/y"
26+
"github.com/dgraph-io/badger/v2/pb"
27+
"github.com/dgraph-io/badger/v2/y"
2828
)
2929

3030
// Backup is a wrapper function over Stream.Backup to generate full and incremental backups of the

backup_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"testing"
2929
"time"
3030

31-
"github.com/dgraph-io/badger/pb"
31+
"github.com/dgraph-io/badger/v2/pb"
3232
"github.com/stretchr/testify/require"
3333
)
3434

badger/cmd/backup.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
"bufio"
2121
"os"
2222

23-
"github.com/dgraph-io/badger"
24-
"github.com/dgraph-io/badger/y"
23+
"github.com/dgraph-io/badger/v2"
24+
"github.com/dgraph-io/badger/v2/y"
2525
"github.com/spf13/cobra"
2626
)
2727

badger/cmd/bank.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ import (
3030
"sync/atomic"
3131
"time"
3232

33-
"github.com/dgraph-io/badger"
34-
"github.com/dgraph-io/badger/options"
35-
"github.com/dgraph-io/badger/pb"
36-
"github.com/dgraph-io/badger/y"
33+
"github.com/dgraph-io/badger/v2"
34+
"github.com/dgraph-io/badger/v2/options"
35+
"github.com/dgraph-io/badger/v2/pb"
36+
"github.com/dgraph-io/badger/v2/y"
3737
"github.com/spf13/cobra"
3838
)
3939

badger/cmd/flatten.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package cmd
1818

1919
import (
20-
"github.com/dgraph-io/badger"
20+
"github.com/dgraph-io/badger/v2"
2121
"github.com/spf13/cobra"
2222
)
2323

badger/cmd/info.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ import (
2929

3030
"github.com/pkg/errors"
3131

32-
"github.com/dgraph-io/badger"
33-
"github.com/dgraph-io/badger/options"
34-
"github.com/dgraph-io/badger/table"
35-
"github.com/dgraph-io/badger/y"
32+
"github.com/dgraph-io/badger/v2"
33+
"github.com/dgraph-io/badger/v2/options"
34+
"github.com/dgraph-io/badger/v2/table"
35+
"github.com/dgraph-io/badger/v2/y"
3636
humanize "github.com/dustin/go-humanize"
3737
"github.com/spf13/cobra"
3838
)

badger/cmd/read_bench.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ import (
2727
humanize "github.com/dustin/go-humanize"
2828
"github.com/spf13/cobra"
2929

30-
"github.com/dgraph-io/badger"
31-
"github.com/dgraph-io/badger/options"
32-
"github.com/dgraph-io/badger/pb"
33-
"github.com/dgraph-io/badger/y"
30+
"github.com/dgraph-io/badger/v2"
31+
"github.com/dgraph-io/badger/v2/options"
32+
"github.com/dgraph-io/badger/v2/pb"
33+
"github.com/dgraph-io/badger/v2/y"
3434
)
3535

3636
var readBenchCmd = &cobra.Command{

0 commit comments

Comments
 (0)