前往Google的Cloud Source Repository获取

Jar*_*per 6 go gcloud google-cloud-source-repos google-source-repositories go-get

制作两个不同的go模块

  1. source.cloud.google.com/me/a

  2. source.cloud.google.com/me/b

随着source.cloud.google.com/me/common作为共同LIB依赖(共享模式)

我正在尝试go get source.cloud.google.com/me/common(甚至手动将其写入go.mod文件中),但我一直收到以下错误:

package source.cloud.google.com/me/common: 
unrecognized import path "source.cloud.google.com/me/common" 
(parse https://source.cloud.google.com/me/common?go-get=1: no go-import meta tags ())
Run Code Online (Sandbox Code Playgroud)

我已经gcloud设置为能够使用app deploy和创建新的源存储库。我尝试设置sshGoogle Cloud,并尝试使用手动凭据。这既不能在本地使用,也不能在Google Cloud build服务中使用。

我想做两件事:

  1. 能够go get依靠source.cloud.google.com/me/common
  2. 能够将其集成go get到我的App Engine自动构建渠道中。

任何帮助,将不胜感激。

小智 -1

这有效: got get source.developers.google.com/p/YOUR_PROJECT_ID/r/YOUR_REPO.git