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 mod/... fails to resolve version #31518

Closed
rsc opened this issue Apr 17, 2019 · 2 comments
Closed

cmd/go: go get mod/... fails to resolve version #31518

rsc opened this issue Apr 17, 2019 · 2 comments
Labels
FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@rsc
Copy link
Contributor

rsc commented Apr 17, 2019

This used to work but now fails:

$ go get -d rsc.io/quote/...
go: finding rsc.io/quote/... latest
go get rsc.io/quote/...: no matching versions for query "latest"
$
@rsc rsc added this to the Go1.13 milestone Apr 17, 2019
@jayconrod
Copy link
Contributor

I changed this yesterday in CL 171138, so I might have broken something. go get -d rsc.io/quote/... is actually one of the test cases though, so I'm surprised it doesn't work.

How can I reproduce this? The commands below succeeded for me at tip:

export GOPATH=$(mktemp -d)
cd $(mktemp -d)
go mod init m
go get rsc.io/quote/...
go: finding rsc.io/quote v1.5.2
go: downloading rsc.io/quote v1.5.2
go: extracting rsc.io/quote v1.5.2
go: finding rsc.io/sampler v1.3.0
go: finding golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
go: downloading rsc.io/sampler v1.3.0
go: extracting rsc.io/sampler v1.3.0
go: downloading golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
go: extracting golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c

@jayconrod jayconrod added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Apr 17, 2019
@jayconrod jayconrod self-assigned this Apr 17, 2019
@andybons andybons modified the milestones: Go1.13, Go1.14 Jul 8, 2019
@bcmills
Copy link
Contributor

bcmills commented Sep 19, 2019

I just checked again and my result matches Jay's: this seems to be working. Perhaps it was broken at some intermediate point during the development cycle?

Please reopen if you have concrete steps that reproduce the failure.

$ gotip version
go version devel +62fb079e Thu Sep 19 04:46:17 2019 +0000 linux/amd64

example.com$ gotip mod init example.com
go: creating new go.mod: module example.com

example.com$ gotip get -d rsc.io/quote/...
go: finding rsc.io/quote v1.5.2
go: downloading rsc.io/quote v1.5.2
go: extracting rsc.io/quote v1.5.2
go: downloading rsc.io/sampler v1.3.0
go: extracting rsc.io/sampler v1.3.0
go: downloading golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c
go: extracting golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c

example.com$

@bcmills bcmills closed this as completed Sep 19, 2019
@golang golang locked and limited conversation to collaborators Sep 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

5 participants