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: "no go-import meta tags" when fetching from a private GitLab repo #37504
Comments
If the server is returning status 500, there isn't really anything the FWIW, here's what I get:
Note that with Go 1.14, in order to access private GitLab repos you'll probably need to put some sort of credential in your |
Also, |
Please follow up with GitLab about the 500's and let us know if you're still having trouble. |
I did it before my test. I've putted my credentials to .netrc. For quick investigation I can add your email to repository gitlab.com/strebul/test_lib. |
I've installed go1.13.8 and there is the same error. go version go version go1.13.8 darwin/amd64 go get gitlab.com/strebul/test_lib go get gitlab.com/strebul/test_lib: unrecognized import path "gitlab.com/strebul/test_lib" (parse https://gitlab.com/strebul/test_lib?go-get=1: no go-import meta tags ()) |
Yeah, I'm not sure why you'd be getting that error. If you can, add GitLab user |
@bcmills I've added you. |
Thanks, I see it. I should have some time to look into this later this week. |
Here's what I'm seeing with Go 1.14, with a GitLab access token in my
and basically the same with Go 1.13.8:
Both of those error messages seem to be accurate. |
If I leave out
|
Is it possible that your machine is configured to use a proxy for HTTPS requests, and that proxy is somehow rewriting GitLab's response in a way that removes the |
Hi, I've compiled golang 1.14 with my fixes (file src/cmd/go/internal/web/http.go:96) and seen that gitlab responded with 500 status code on request with Authorization: Basic ***. Finally to obtain private repository from gitlab:
|
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yeap
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
CURL
<html><head><meta name="go-import" content="gitlab.com/strebul/test_lib git https://gitlab.com/strebul/test_lib.git" /><meta name="go-source" content="gitlab.com/strebul/test_lib https://gitlab.com/strebul/test_lib https://gitlab.com/strebul/test_lib/-/tree/master{/dir} https://gitlab.com/strebul/test_lib/-/blob/master{/dir}/{file}#L{line}" /></head><body>go get https://gitlab.com/strebul/test_lib</body></html>
What did you expect to see?
I want to obtain dependency.
With golang 1.14
The text was updated successfully, but these errors were encountered: