Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 756
Gholamreza Eghbali Avatar asked Oct 29 '22 00:10

Gholamreza Eghbali


1 Answers

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/

like image 58
Jeyem Avatar answered Nov 04 '22 13:11

Jeyem