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

go mod 无法下载最新版client #77

Closed
dollarkillerx opened this issue Apr 13, 2021 · 6 comments · Fixed by #79
Closed

go mod 无法下载最新版client #77

dollarkillerx opened this issue Apr 13, 2021 · 6 comments · Fixed by #79

Comments

@dollarkillerx
Copy link

go version go1.13.5 linux/amd64

go.mod:

go 1.13

require (
	github.com/vesoft-inc/nebula-go v2.0.0-ga
)

Error:

require github.com/vesoft-inc/nebula-go: version "v2.0.0-ga" invalid: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2

@Aiee
Copy link
Contributor

Aiee commented Apr 14, 2021

In the root directory of your project, $ go get -u -v github.com/vesoft-inc/nebula-go@master and you should be able to see that go.mod has been updated.

@conderls
Copy link

failed to get v2.0.0 with go v1.4 as well:

$ go version
go version go1.14 darwin/amd64

$ go get -u -v github.com/vesoft-inc/nebula-go@master
go: github.com/vesoft-inc/nebula-go master => v1.1.1-0.20210416024212-052593cefbb9

@Aiee
Copy link
Contributor

Aiee commented Apr 27, 2021

failed to get v2.0.0 with go v1.4 as well:

$ go version
go version go1.14 darwin/amd64

$ go get -u -v github.com/vesoft-inc/nebula-go@master
go: github.com/vesoft-inc/nebula-go master => v1.1.1-0.20210416024212-052593cefbb9

go: github.com/vesoft-inc/nebula-go master => v1.1.1-0.20210416024212-052593cefbb9 This states that nebula-go has been updated.

@conderls
Copy link

failed to get v2.0.0 with go v1.4 as well:

$ go version
go version go1.14 darwin/amd64

$ go get -u -v github.com/vesoft-inc/nebula-go@master
go: github.com/vesoft-inc/nebula-go master => v1.1.1-0.20210416024212-052593cefbb9

go: github.com/vesoft-inc/nebula-go master => v1.1.1-0.20210416024212-052593cefbb9 This states that nebula-go has been updated.

yes, but it is supposed to be v2.0.0, right? Otherwise, how can we get the v2.0+ version of nebula?

@Aiee
Copy link
Contributor

Aiee commented Apr 27, 2021

failed to get v2.0.0 with go v1.4 as well:

$ go version
go version go1.14 darwin/amd64

$ go get -u -v github.com/vesoft-inc/nebula-go@master
go: github.com/vesoft-inc/nebula-go master => v1.1.1-0.20210416024212-052593cefbb9

go: github.com/vesoft-inc/nebula-go master => v1.1.1-0.20210416024212-052593cefbb9 This states that nebula-go has been updated.

yes, but it is supposed to be v2.0.0, right? Otherwise, how can we get the v2.0+ version of nebula?

The Nebula-go version is only relative to the Github branch, which means if you run $ go get -u -v github.com/vesoft-inc/nebula-go@master, you will get the latest dependency.
The v1.1.1-0.20210416024212-052593cefbb9 you see is an auto-generated version tag by Github. I will add this explanation to the README to clarify.

@Aiee Aiee linked a pull request Apr 27, 2021 that will close this issue
@everywan
Copy link

may be shold see this? #80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants