2017-10-29 12:44
浏览 388


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

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • drsw9390405 2017-10-29 20:53

    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/

    点赞 打赏 评论

相关推荐 更多相似问题