outcaste-io / issues

File issues here across all public Outcaste Repositories
Apache License 2.0
6 stars 0 forks source link

How to migrate from github.com/dgraph-io/badger to github.com/outcaste-io/badger? #1

Closed veith closed 2 years ago

veith commented 2 years ago

Is it enough to change the dependency in go.mod?

manishrjain commented 2 years ago

Yes, that should be sufficient. If it doesn't work, let me know.

veith commented 2 years ago

Sorry it doesn't work, i suggest, you have to make a release, otherwise it will try to install v3.2103.2 , but this states himself as dgraph-io...

go: github.com/outcaste-io/badger/v3@v3.2103.2: parsing go.mod:
        module declares its path as: github.com/dgraph-io/badger/v3
                but was required as: github.com/outcaste-io/badger/v3

installing latest, also points to v3.2103.2

manishrjain commented 2 years ago

@danielmai -- Can you look into this and fix this up please?

veith commented 2 years ago

This one works:

github.com/outcaste-io/badger/v3 v3.0.0-20220210203236-1b1148a36313

It points to the latest commit

veith commented 2 years ago
danielmai commented 2 years ago

BadgerDB v3.2202.0 release is cut now. So the following commands can be used to do a fresh install or update:

go get github.com/outcaste-io/badger/v3
go get github.com/outcaste-io/badger/v3@v3.2202.0
danielmai commented 2 years ago

dgo v210.03.1 release is cut now. These commands should work now for updating to the release:

go get github.com/outcaste-io/dgo/v210
go get github.com/outcaste-io/dgo/v210@v210.03.1
veith commented 2 years ago

I will try to install outcast-io/badger and run my tests

veith commented 2 years ago

All tests passed :-)

danielmai commented 2 years ago

Glad all your tests passed!

There's now a section in the docs/README on how to migrate to outcaste-io/badger. Mainly covers updating go.mod and the Go imports.