Gholamreza Eghbali
Gholamreza Eghbali

Reputation: 300

unrecognized import path (golang google package)

function used:

go get golang.org/x/oauth2/google

expect: download package what happened?

package cloud.google.com/go/compute/metadata: unrecognized import path "cloud.google.com/go/compute/metadata" (parsing cloud.google.com/go/compute/metadata: XML syntax error on line 9: expected /> in element)

thanks for helping

Upvotes: 5

Views: 3540

Answers (1)

Jeyem
Jeyem

Reputation: 310

I had same issue, seems like serving repository from that path is missing, I find the repository in github and clone it into my $GOPATH/src then Move the container of project to go. this is the repository address:

1) git clone https://github.com/GoogleCloudPlatform/google-cloud-go

2) mv google-cloud-go $GOPATH/src/cloud.google.com/go/

Upvotes: 2

Related Questions