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 -u cloud.google.com/go/ fails "unrecognized import path "cloud.google.com/go"" #820

Closed
macrael opened this issue Dec 4, 2017 · 20 comments
Assignees

Comments

@macrael
Copy link

macrael commented Dec 4, 2017

It appears that the website cloud.google.com/go has been taken down.

I can't build my projects because an import for "cloud.google.com/go" doesn't download anything. The site https://cloud.google.com/go no longer has the required meta tag to point to the repo.

Please resolve this, my build process is broken right now.

@elithrar
Copy link

elithrar commented Dec 4, 2017 via email

@macrael
Copy link
Author

macrael commented Dec 4, 2017

$ go get -v -u cloud.google.com/go
Fetching https://cloud.google.com/go?go-get=1
Parsing meta tags from https://cloud.google.com/go?go-get=1 (status code 200)
package cloud.google.com/go: unrecognized import path "cloud.google.com/go" (parse https://cloud.google.com/go?go-get=1: no go-import meta tags ())

@macrael
Copy link
Author

macrael commented Dec 4, 2017

that site was 404 for me for a minute, and when I grep through the page returned currently I don't see any meta tags.

@timfallmk
Copy link

I've confirmed that the problem appears to be missing go import tags: From golang.org:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="go-import" content="golang.org/x/net git https://go.googlesource.com/net">
<meta name="go-source" content="golang.org/x/net https://github.com/golang/net/ https://github.com/golang/net/tree/master{/dir} https://github.com/golang/net/blob/master{/dir}/{file}#L{line}">
<meta http-equiv="refresh" content="0; url=https://godoc.org/golang.org/x/net">
</head>

Equivalent section on cloud.google.com/go (with forwarding) shows no go related tags.

@bradfitz
Copy link
Contributor

bradfitz commented Dec 5, 2017

Hey @broady, this is bad. Please escalate.

Looks like the URL path canonicalization (GET /go/bigtable?go-get=1 => /go/bigtable/?go-get=1) is happening before the go-get=1 special-casing.

@dfawley
Copy link
Contributor

dfawley commented Dec 5, 2017

FWIW, I filed an internal bug about this.

@ankurcha
Copy link

ankurcha commented Dec 5, 2017

And this is why we should vendor the internet before building software?

@timfallmk
Copy link

timfallmk commented Dec 5, 2017

@ankurcha Also breaks vendoring:

dep ensure -v --vendor-only
grouped write of manifest, lock and vendor: error while writing out vendor tree: failed to write dep tree: failed to export cloud.google.com/go: unable to deduce repository and source type for "cloud.google.com/go": unable to read metadata: go-import metadata not found

I appreciate your snark, but even that breaks 😉

@bradfitz
Copy link
Contributor

bradfitz commented Dec 5, 2017

@timfallmk, it breaks updating vendored deps, but not people who've already vendored their deps and just want to hack on & rebuild their own code.

@ankurcha
Copy link

ankurcha commented Dec 5, 2017

Sorry didn't mean to be snarky. Just spent a good half an hour trying to figure out what broke my day long roll. :-/

Actually, I also noticed it when my dep ensure --vendor-only step broke

@jba jba self-assigned this Dec 5, 2017
@timfallmk
Copy link

@bradfitz Fair enough. It's a fine distinction. Unfortunately, it also breaks (at least for dep) when checking to see if vendored dependencies should be updated. Your point is well taken however.

@chetananand
Copy link

If someone is using glide for vendoring, then adding something like:

package: cloud.google.com/go
vcs: git
repo: https://code.googlesource.com/gocloud
subpackages:
  - compute/metadata
  - internal/version

will help as a temporary workaround.

@jba
Copy link
Contributor

jba commented Dec 5, 2017

We've found the problem and are working on a solution.

@jba
Copy link
Contributor

jba commented Dec 5, 2017

This should be fixed. Ping this issue if it's still a problem.

@jba jba closed this as completed Dec 5, 2017
@macrael
Copy link
Author

macrael commented Dec 5, 2017

Thanks all!

@scottpettyjohn
Copy link

I am having the same issue described.
go get -v -u cloud.google.com/go
Fetching https://cloud.google.com/go?go-get=1
https fetch failed: Get https://cloud.google.com/go?go-get=1: x509: certificate signed by unknown authority
package cloud.google.com/go: unrecognized import path "cloud.google.com/go" (https fetch: Get https://cloud.google.com/go?go-get=1: x509: certificate signed by unknown authority)

If I use the -insecure flag, I get the missing meta-tag:

go get -v -u -insecure cloud.google.com/go/...
Fetching https://cloud.google.com/go?go-get=1
https fetch failed: Get https://cloud.google.com/go?go-get=1: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Fetching http://cloud.google.com/go?go-get=1
Parsing meta tags from http://cloud.google.com/go?go-get=1 (status code 401)
package cloud.google.com/go/...: unrecognized import path "cloud.google.com/go/..." (parse http://cloud.google.com/go?go-get=1: no go-import meta tags ())

@bradfitz
Copy link
Contributor

bradfitz commented Nov 20, 2018

@scottpettyjohn, looks like you're having a different problem. Also, this issue is closed and almost a year old.

Can you file a new bug? We don't track old, closed bugs.

You might be missing a ca-certificates package or something, but you should include details about your OS & version in a new bug you file (not here).

@Ark-kun
Copy link

Ark-kun commented Jan 31, 2020

Having this again:

go: cloud.google.com/go@v0.44.3: unrecognized import path "cloud.google.com/go" (parse https://cloud.google.com/go?go-get=1: no go-import meta tags ())

@tbpg
Copy link
Contributor

tbpg commented Feb 3, 2020

Thank you for the report. Unfortunately, I'm not seeing the error right now.

Do you have a proxy enabled? That would sidestep this issue in the future.

$ go env GOPROXY
https://proxy.golang.org,direct

@broady
Copy link
Contributor

broady commented Feb 3, 2020

Locking this issue. If you see something similar, please open a new bug.

@googleapis googleapis locked as resolved and limited conversation to collaborators Feb 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests