Golang Dep无法读取元数据:找不到go导入元数据

Golang Dep无法读取元数据:找不到go导入元数据,go,godeps,Go,Godeps,我正在过渡到使用golang Dep 我们有使用公共代码库的微服务存储库 Its托管在git.corp.company.com/Organization/common-base 在供应商群中,我们的项目结构如下 vendor git.corp.company.com Organization common-base github.com ... online dependencies like aws, garyburd, etc... golang.or

我正在过渡到使用golang Dep

我们有使用公共代码库的微服务存储库

Its托管在git.corp.company.com/Organization/common-base

在供应商群中,我们的项目结构如下

vendor
  git.corp.company.com
    Organization
      common-base
  github.com
    ... online dependencies like aws, garyburd, etc...
  golang.org
    X
      sys
      text
当我尝试执行dep init时,会收到如下错误消息

无法推断“git.corp.company.com/Organization/common base”的存储库和源类型:无法读取元数据:未找到导入元数据


我不知道为什么会这样,下一步该怎么办。我是否需要将元数据文件添加到我们的通用代码中?

[更新:
dep
在其应用程序中支持此功能]

dep
/
go-get
使用
go-import
元标记获取依赖项。 因此,您可能需要将此元标记添加到您的
git.corp.company.com
页面

例如:当您执行
go-get-golang.org/x/crypto
操作时,它会检查
go-import
meta标记,以了解有关此库的更多信息,如它的宿主位置以及它们使用的源代码管理。该信息通过
go-import
meta标签提供给它。见下文:

$curl -L -s golang.org/x/crypto | grep -i go-import
<meta name="go-import" content="golang.org/x/crypto git https://go.googlesource.com/crypto">
$curl-L-s golang.org/x/crypto | grep-i go导入
或者,您可以为此目的设置代理。
或者有一些替代方法,在导入路径中附加
.git
也会有所帮助