1

我在一个组内的 gitlab 中有 Go 项目,所以它就像:

https://gitlab.com/company/group/project1.git
https://gitlab.com/company/group/project2.git
etc.

我有一个供应商文件夹,其中生成了 vendor.json 当我打电话时

govendor fetch +a


# cd .; git clone https://gitlab.com/company/group.git /home/user/go/.cache/govendor/gitlab.com/company/group
Cloning into '/home/user/go/.cache/govendor/gitlab.com/company/group'...
remote: The project you were looking for could not be found.
fatal: repository 'https://oauth2:xxxxxxxxx@gitlab.com/company/group.git/' not found
Error: failed to create repo "https://gitlab.com/company/group.git" in "/home/user/go/.cache/govendor/gitlab.com/company/group" exit status 128

当我尝试使用 dep 时,我得到:

Trying master (9def400) as initial lock for imported dep gitlab.com/company/miscellaneous
  Warning: Skipping project. Unable to import lock "e08070af4ee384fbddd6e78b3c9c73653776e249" for gitlab.com/company/group: unable to list versions for gitlab.com/company/group(): 
        (1) failed to list versions for https://gitlab.com/company/group.git: remote: The project you were looking for could not be found.
fatal: repository 'https://oauth2:xxxxxxxx@gitlab.com/company/group.git/' not found
: exit status 128

为什么 govendor / dep 试图获取一个组而不是一个项目?

4

0 回答 0