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 get no working with Go modules: no matching versions for query "latest" #381

Closed
ahmetb opened this issue Jul 23, 2019 · 2 comments
Closed
Assignees
Labels
type: question Request for information or clarification. Not an issue.

Comments

@ahmetb
Copy link

ahmetb commented Jul 23, 2019

go-get for an existing package doesn't work off the bat.

$ go get -v google.golang.org/api/run/v1beta1
Fetching https://google.golang.org/api/run/v1beta1?go-get=1
Parsing meta tags from https://google.golang.org/api/run/v1beta1?go-get=1 (status code 200)
get "google.golang.org/api/run/v1beta1": found meta tag get.metaImport{Prefix:"google.golang.org/api", VCS:"git", RepoRoot:"https://code.googlesource.com/google-api-go-client"} at https://google.golang.org/api/run/v1beta1?go-get=1
get "google.golang.org/api/run/v1beta1": verifying non-authoritative meta tag
Fetching https://google.golang.org/api?go-get=1
Parsing meta tags from https://google.golang.org/api?go-get=1 (status code 200)
go: finding google.golang.org/api/run/v1beta1 latest
Fetching https://google.golang.org/api/run?go-get=1
Parsing meta tags from https://google.golang.org/api/run?go-get=1 (status code 200)
get "google.golang.org/api/run": found meta tag get.metaImport{Prefix:"google.golang.org/api", VCS:"git", RepoRoot:"https://code.googlesource.com/google-api-go-client"} at https://google.golang.org/api/run?go-get=1
get "google.golang.org/api/run": verifying non-authoritative meta tag
go: finding google.golang.org/api/run latest
Fetching https://google.golang.org/api?go-get=1
Parsing meta tags from https://google.golang.org/api?go-get=1 (status code 200)
get "google.golang.org/api": found meta tag get.metaImport{Prefix:"google.golang.org/api", VCS:"git", RepoRoot:"https://code.googlesource.com/google-api-go-client"} at https://google.golang.org/api?go-get=1
Fetching https://google.golang.org?go-get=1
Parsing meta tags from https://google.golang.org?go-get=1 (status code 200)
go get google.golang.org/api/run/v1beta1: no matching versions for query "latest"

I had to talk to someone working on client libraries to figure out the workaround (@master). This doesn't sound ideal.

@jeanbza jeanbza self-assigned this Jul 23, 2019
@jeanbza jeanbza added the type: question Request for information or clarification. Not an issue. label Jul 23, 2019
@jeanbza
Copy link
Member

jeanbza commented Jul 23, 2019

That package is not part of a published module, which is why you can't go get it normally but can with @master. This seems to be WAI. Closing, but let me know if you have further questions.

@jeanbza jeanbza closed this as completed Jul 23, 2019
@jeanbza
Copy link
Member

jeanbza commented Jul 23, 2019

Also: that package is about to be deleted (see: #382)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants