如何使用Dep Go依赖工具将本地同级项目导入供应商?

时间:2019-07-09 17:59:01

标签: go dependencies go-modules dep govendor

enter image description here

  1. 上图显示了GOPATH的代码组织。
  2. 没有远程存储库,Dep无法工作吗?
  3. S2/bar/main.go内,我有一个import语句并引用了"github.com/go/S1/proto"
  4. S2项目中的
  5. $ dep init出现以下错误
    init failed: unable to solve the dependency graph: Solving failure:
    (1) failed to list versions for https://github.com/go/S1: remote: Repository not found.
fatal: repository 'https://github.com/go/S1/' not found
: exit status 128
    (2) failed to list versions for ssh://git@github.com/go/S1: ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
: exit status 128
    (3) failed to list versions for git://github.com/go/S1: fatal: remote error:
  Repository not found.
: exit status 128
    (4) failed to list versions for http://github.com/go/S1: remote: Repository not found.
fatal: repository 'https://github.com/go/S1/' not found
: exit status 128

0 个答案:

没有答案