-
Notifications
You must be signed in to change notification settings - Fork 18k
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: proxy URL's not working with go modules #29484
Comments
@Mattouille the link to the Github mirror gives a 404. Did you mean to link to https://github.com/googleapis/google-cloud-go instead? I also updated the title to match the Go issue format guidelines. Are there any other specific details you can add to the title of the issue? As it is now, it sounds like all proxy urls fail with modules, though that's not clear to me from the issue description. /cc @bcmills |
@katiehockman my apologies for not following the format guidelines, this is my first issue here and I should've read the contributing guide. That is the URL I meant, I forgot to tack on "https://" after pasting the import URL. I'm really not sure of anyone else using proxy URL's; and to be fair I'm not sure that's what Google is doing either, it's just how I guessed they're doing it. If you want me to dig into it further I can. I'm not sure of what other details to add other than what I've included but I'm happy to provide any clarification and I can probably also be available to reproduce it as well. |
No problem! Thanks for reporting. |
@Mattouille Can you please try $ go get -u -v cloud.google.com/go/pubsub Fetching https://cloud.google.com/go/pubsub?go-get=1 Parsing meta tags from https://cloud.google.com/go/pubsub?go-get=1 (status code 200) get "cloud.google.com/go/pubsub": found meta tag get.metaImport{Prefix:"cloud.google.com/go", VCS:"git", RepoRoot:"https://code.googlesource.com/gocloud"} at https://cloud.google.com/go/pubsub?go-get=1 get "cloud.google.com/go/pubsub": verifying non-authoritative meta tag Fetching https://cloud.google.com/go?go-get=1 Parsing meta tags from https://cloud.google.com/go?go-get=1 (status code 200) go: finding cloud.google.com/go/pubsub latest Fetching https://cloud.google.com/go?go-get=1 Parsing meta tags from https://cloud.google.com/go?go-get=1 (status code 200) get "cloud.google.com/go": found meta tag get.metaImport{Prefix:"cloud.google.com/go", VCS:"git", RepoRoot:"https://code.googlesource.com/gocloud"} at https://cloud.google.com/go?go-get=1 ... |
Typically it would say this, then if you looked in |
Strange. Maybe git commands failed? @Mattouille If you provide > go mod tidy > go clean --modcache > go get -v -x cloud.google.com/go/pubsub |
I'm unable to reproduce this issue using Are you sure you don't have an errant
|
100% and I checked the |
Hey @Mattouille, just checking in to see if you got a chance to run this on MBP ? Thanks. |
I've been using this repo since, and I've also upgraded Go since then. Unless someone else runs into it, it can probably be closed. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Unknown
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go get cloud.google.com/go/pubsub
What did you expect to see?
Changes in
go.mod
andgo.sum
What did you see instead?
Additional Information
It looks like cloud.google.com/go is a proxy or vanity URL for code.googlesource.com/gocloud. Additionally, I found a note that the repo at googlesource.com has a GitHub mirror here. I can only pull the pubsub package (or any package rather) if I use the GitHub mirror. Anything else results in:
I wanted to add this to the experience report, but I'd like to determine the actual cause before I do. The subject I used is my best guess as to what happened given what I know about how Go modules pull from various sources.
The text was updated successfully, but these errors were encountered: