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

75 Views Asked by At

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:[email protected]/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:[email protected]/company/group.git/' not found
: exit status 128

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

0

There are 0 best solutions below