Skip to content

Commit

Permalink
Bump badger to 2.0.0.rc2
Browse files Browse the repository at this point in the history
Broken currently here:

    go: finding github.com/zippoxer/bow latest
    go: github.com/dgraph-io/badger@v2.0.0-rc.2+incompatible: go.mod has post-v2 module path "github.com/dgraph-io/badger/v2" at revision v2.0.0-rc.2
    go: error loading module requirements

Which seems to be related to dgraph-io/badger#886

There's also a recent upstream API change in dgraph-io/badger#874
that requires additional changes.
  • Loading branch information
rubiojr committed Jul 25, 2019
1 parent 7c6a3dc commit 6640b2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db.go
Expand Up @@ -167,7 +167,7 @@ type DB struct {
// Make sure to call Close after you're done.
func Open(dir string, options ...Option) (*DB, error) {
db := &DB{
badgerOptions: badger.DefaultOptions,
badgerOptions: badger.DefaultOptions(dir),
codec: jsoncodec.Codec{},
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -5,7 +5,7 @@ go 1.12
require (
github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9 // indirect
github.com/deckarep/golang-set v1.7.1 // indirect
github.com/dgraph-io/badger v2.0.0-rc.2+incompatible
github.com/dgraph-io/badger v2.0.0-rc2+incompatible
github.com/dgryski/go-farm v0.0.0-20190323231341-8198c7b169ec // indirect
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/golang/protobuf v1.3.1 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Expand Up @@ -6,6 +6,8 @@ github.com/deckarep/golang-set v1.7.1 h1:SCQV0S6gTtp6itiFrTqI+pfmJ4LN85S1YzhDf9r
github.com/deckarep/golang-set v1.7.1/go.mod h1:93vsz/8Wt4joVM7c2AVqh+YRMiUSc14yDtF28KmMOgQ=
github.com/dgraph-io/badger v2.0.0-rc.2+incompatible h1:7KPp6xv5+wymkVUbkAnZZXvmDrJlf09m/7u1HG5lAYA=
github.com/dgraph-io/badger v2.0.0-rc.2+incompatible/go.mod h1:VZxzAIRPHRVNRKRo6AXrX9BJegn6il06VMTZVJYCIjQ=
github.com/dgraph-io/badger v2.0.0-rc2+incompatible h1:6fXfqViMStaKb73bxivvD9hgwYdWyiEKzwWNVkXhslE=
github.com/dgraph-io/badger v2.0.0-rc2+incompatible/go.mod h1:VZxzAIRPHRVNRKRo6AXrX9BJegn6il06VMTZVJYCIjQ=
github.com/dgryski/go-farm v0.0.0-20190323231341-8198c7b169ec h1:sElGDs3V8VdCxH5tWi0ycWJzteOPLJ3HtItSSKI95PY=
github.com/dgryski/go-farm v0.0.0-20190323231341-8198c7b169ec/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw=
github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo=
Expand Down

0 comments on commit 6640b2c

Please sign in to comment.