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

cmd/go: `go get`: 'unexpected end of JSON input' for module missing /v3 suffix #30494

Open
iiinsomnia opened this Issue Mar 1, 2019 · 2 comments

Comments

Projects
None yet
4 participants
@iiinsomnia
Copy link

iiinsomnia commented Mar 1, 2019

What version of Go are you using (go version)?

$ go version
v1.12

The module yiigo has tag v3.0.0, but when I run go get github.com/iiinsomnia/yiigo, it gets the v2.1.0 and when I run go get github.com/iiinsomnia/yiigo@v3.0.0, it shows: go get github.com/iiinsomnia/yiigo@v3.0.0: unexpected end of JSON input

@iiinsomnia iiinsomnia changed the title `go mod` : unexpected end of JSON input `go get` : unexpected end of JSON input Mar 1, 2019

@bradfitz bradfitz changed the title `go get` : unexpected end of JSON input cmd/go: `go get` : unexpected end of JSON input Mar 1, 2019

@bradfitz bradfitz added this to the Go1.13 milestone Mar 1, 2019

@bradfitz

This comment has been minimized.

Copy link
Member

bradfitz commented Mar 1, 2019

/cc @bcmills

@bcmills

This comment has been minimized.

Copy link
Member

bcmills commented Mar 2, 2019

The reason you can't go get it is because the module path doesn't end in /v3. See https://golang.org/cmd/go/#hdr-Module_compatibility_and_semantic_versioning.

That said, we should definitely produce a clearer diagnostic message in this case.

CC @jayconrod

@bcmills bcmills changed the title cmd/go: `go get` : unexpected end of JSON input cmd/go: `go get`: unexpected end of JSON input for module missing /v3 suffix Mar 2, 2019

@bcmills bcmills added the modules label Mar 2, 2019

@bcmills bcmills changed the title cmd/go: `go get`: unexpected end of JSON input for module missing /v3 suffix cmd/go: `go get`: 'unexpected end of JSON input' for module missing /v3 suffix Mar 2, 2019

@jayconrod jayconrod self-assigned this Mar 4, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.