Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README.md install instruction isnt working (anymore?) #1415

Closed
Vincent535 opened this issue Jul 11, 2020 · 3 comments
Closed

README.md install instruction isnt working (anymore?) #1415

Vincent535 opened this issue Jul 11, 2020 · 3 comments
Labels
good first issue These are simple issues that can be picked up by new contributors kind/enhancement Something could be better.

Comments

@Vincent535
Copy link

README.md > Getting Started > Installing
Instructs to use:
go get github.com/dgraph-io/badger/v2

Which gives:
package github.com/dgraph-io/badger/v2: cannot find package "github.com/dgraph-io/badger/v2"

And should probably just be:
go get github.com/dgraph-io/badger

It's my first minute visiting the project, so I'm not completely sure

(GO1.13.8 on Ubuntu 20.04 LTS kernel on MS - WSL2)

@jmburges
Copy link

same.

@jarifibrahim
Copy link
Contributor

@Vincent864 It should be go get -v github.com/dgraph-io/badger . Please feel free to send a PR.

I had changed ti from go get github.com/dgraph-io/badger to go get github.com/dgraph-io/badger/v2 because if you run the command inside a project with go.mod, it downloads badger v1.6

 docker run -it golang:1.14 bash
root@045bc70ef964:/go# ls
bin  src
root@045bc70ef964:/go# cd
root@045bc70ef964:~# ls
root@045bc70ef964:~# mkdir foo
root@045bc70ef964:~# cd foo/
root@045bc70ef964:~/foo# go mod init foo
go: creating new go.mod: module foo
root@045bc70ef964:~/foo# go get -v github.com/dgraph-io/badger
go: downloading github.com/dgraph-io/badger v1.6.1
go: github.com/dgraph-io/badger upgrade => v1.6.1
go: downloading github.com/dgraph-io/ristretto v0.0.2
go: downloading github.com/dustin/go-humanize v1.0.0
go: downloading github.com/pkg/errors v0.8.1
go: downloading golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb
go: downloading github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9
go: downloading golang.org/x/net v0.0.0-20190620200207-3b0461eec859
go: downloading github.com/golang/protobuf v1.3.1
go: downloading github.com/cespare/xxhash v1.1.0
github.com/dgraph-io/badger/options
github.com/dgraph-io/badger/trie
github.com/cespare/xxhash
golang.org/x/sys/unix
github.com/pkg/errors
golang.org/x/net/internal/timeseries
github.com/golang/protobuf/proto
github.com/AndreasBriese/bbloom
github.com/dustin/go-humanize
github.com/dgraph-io/ristretto/z
golang.org/x/net/trace
github.com/dgraph-io/badger/y
github.com/dgraph-io/badger/skl
github.com/dgraph-io/badger/table
github.com/dgraph-io/badger/pb
github.com/dgraph-io/badger
root@045bc70ef964:~/foo# cat go.mod 
module foo

go 1.14

require github.com/dgraph-io/badger v1.6.1 // indirect

But it should be okay to change the go get command in the readme.

@jarifibrahim jarifibrahim added good first issue These are simple issues that can be picked up by new contributors kind/enhancement Something could be better. labels Jul 13, 2020
@minhaj-shakeel
Copy link

Github issues have been deprecated.
This issue has been moved to discuss. You can follow the conversation there and also subscribe to updates by changing your notification preferences.

drawing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue These are simple issues that can be picked up by new contributors kind/enhancement Something could be better.
Development

No branches or pull requests

4 participants