Govendor and dep trying to fetch group, when it should fetch projects

情到浓时终转凉″ 提交于 2019-12-11 06:14:23

问题


I have Go project in gitlab inside a group, so it is like:

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

I have a vendor folder with vendor.json generated When I call

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

When I try with dep, I get:

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

Why is Govendor / dep trying to fetch a group instead of a project?

来源:https://stackoverflow.com/questions/56670381/govendor-and-dep-trying-to-fetch-group-when-it-should-fetch-projects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!