dep are you using (dep version)?$ cd $GOPATH/src/github.com/golang/dep && git describe --tags
v0.3.2-57-ga5f10f17
dep command did you run?dep ensure -add ...
Checkout of given project.
$ dep ensure -add git.xxx.com/group/subgroup/project
Fetching sources...
Failed to add the dependencies:
✗ failed to fetch source for git.xxx.com/group/subgroup: remote repository at git.xxx.com/group/subgroup.git does not exist, or is inaccessible: remote: The project you were looking for could not be found.
fatal: repository 'git.xxx.com/group/subgroup.git/' not found
: exit status 128
adding dependencies failed
As at least Gitlabt does support subgroups, it would be nice to see support of this feature in golang/dep.
Sorry, but this is on gitlab - they don't report go-get metadata correctly for subgroup repositories. when dep tries to clone from git.xxx.com/group/subgroup.git instead of git.xxx.com/group/subgroup/project.git, it's because that's where gitlab's HTTP metadata told dep to look.
Cross-reference to GitLab issue: https://gitlab.com/gitlab-org/gitlab-ce/issues/37832
Open 3 years ago and nothing changed : https://gitlab.com/gitlab-org/gitlab-ce/issues/1337#note_36293613
Any idea when this will be fixed ?
Any progress yet?
I created a PR 20 days ago. I'm waiting for a review.
The history is a little confusing, but is this addressed now with the gitlab 11.7 release that just came out?
https://about.gitlab.com/2019/01/22/gitlab-11-7-released/#support-for-private-go-packages-in-subgroups
Support for private Go packages in subgroups
Go packages hosted in GitLab can be installed using go get, however this was not supported for private projects in subgroups. Starting with GitLab 11.7, any project can be used as a Go package, including private projects in subgroups.
Most helpful comment
I created a PR 20 days ago. I'm waiting for a review.