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
go get could not understand the right git path. it only support one level namespace #21859
Comments
In our real production environment, we have thousands repositories. we need to organize them in 3 or 4 level.
They are standalone git repository, and maintained by different department. |
AIUI, the repository you are trying to clone is at
But it seems to be
leading go get to make the extra request for
so go-get tries to clone that. Whatever is serving https://www.gitexample.com/ needs to fix the meta-tags it is serving to point to the correct repository. See here for the protocol used. In particular, if you want to make a sub-directory of a repository go-gettable, vcs-prefix needs to be the import-path of the repository root and repo-root should be where to clone the repository from. So, you want to set up the server to serve the meta tag
on all urls starting with Does that help? |
I checked the |
Have you tried including the |
Try |
I'm going to close this issue because I don't see any fixable bug here. Please comment if you disagree. If you don't understand the meta-tag protocol that @Merovius mentions, please ask a on a forum; see https://golang.org/wiki/Questions. Thanks. |
I am having this exact issue. pretty critical for me right now: but it doesn't like the extra level it seems:
I realize a real fix would have to wait for the next release, but if I could get a workaround for it, it would be a huge help. |
Ignore me. Gitlab issue. |
I am try to using
go get
tool to download golang packages.the prefix was
/compnap/public_service
. And theshort_url
was the real project name.But golang try to located
comnap/public_service
as git repository. It really not good for us.Why go get can only support one level path?
The text was updated successfully, but these errors were encountered: