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

bad go module version #91

Closed
okhowang opened this issue May 30, 2021 · 0 comments · Fixed by #93
Closed

bad go module version #91

okhowang opened this issue May 30, 2021 · 0 comments · Fixed by #93

Comments

@okhowang
Copy link
Contributor

reference: golang/go#35732
when version go to v2, v3 and so on.
module path should be end with v2, v3

Steps for Reproduction

mkdir a
cd a
go mod init a
go get -v github.com/eko/gocache@v2.0.0

Expected behavior:
get correct module

Actual behavior:
output

go get: github.com/eko/gocache@v2.0.0: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2
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.

1 participant