我在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试图获取一个组而不是一个项目?