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

Comments

@rsc
Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor

commented Apr 17, 2019

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 self-assigned this Apr 17, 2019

@jayconrod jayconrod added the modules label Apr 17, 2019

@andybons andybons modified the milestones: Go1.13, Go1.14 Jul 8, 2019

@bcmills

This comment has been minimized.

Copy link
Member

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 Sep 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.