-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: cannot go get package from private Gitlab repo that is in a subgroup #42632
Comments
I see #34094 which looks like the same problem - this is closed and resolved, but it still seems to be an issue for me. Edit: It seems actually that #34094 is related, but not the same issue as the one I'm experiencing. That issue relates to getting |
FYI I'm using SSH to access the private repo, using the git insteadOf config: $ git config --global git@myprivategitlabinstance.com:.insteadOf https://myprivategitlabinstance.com/ $ cat ~/.gitconfig [url "git@myprivategitlabinstance.com:"] insteadOf = https://myprivategitlabinstance.com/ I see some mention of a |
Also, this set up works with a different repo on the same private gitlab instance, that is not in a subgroup i.e. has the format |
|
Or, if you really want to bypass the HTTPS resolution entirely, you need an explicit Otherwise, as @seankhliao notes, you'll need a |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I tried to
go get
a package from a private Gitlab repo that is in a subgroup.What did you expect to see?
I expected the
go get
command to download the package dependency without an error i.e.What did you see instead?
An error when running
go get
. Parsing of the repo root is incorrect, I think due togo get
interpereting the import asmysubgroup/myrepo
i.e. myrepo is a subpackage of the mysubgroup pacakge.go get
therefore tries to pull from "https://myprivategitlabinstance.com/mygroup/mysubgroup.git" which is not a git repository but a Gitlab subgroup which contains git repositories.The text was updated successfully, but these errors were encountered: