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
x/vgo: detect and support gitlab installs #24044
Comments
It may be possible to detect and support gitlab installs. Or it may be better to merge into gitlab support for redirecting to the release archives. |
I don't know anything about Gitlab. Does it have an identifying HTTP response header? Does it have an API to get at basic repo operations? We don't want to do a full git clone, we want to ask a few directed questions and then download go.mod and eventually a zip at a given commit. |
Gitlab has a decent API, unfortunately I've not figured out how to identify it as gitlab without probing a few endpoints. I'm certainly no expert with gitlab either so others may chime in. You can view public stuff without auth. The Repo can include a group name as well so URLS may be 3 levels deep: /group/repo/project Go Get Info Download Archive at commit hash
|
@snowzach thanks, what do you get from
? |
@rsc sadly, nothing that looks uniquely identifiable (at least to me)
|
While probably not ideal, if you fetch the repo without the go-get, the html has a number of instances of "gitlab" in it. It also has a cookie called _gitlab_session
|
Now that vgo supports plain git again, I can vgo get gitlab.csos95.com/csos95/mylogger. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10 darwin/amd64 vgo:2018-02-20.1
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
vgo build
you can see the modules here:
https://gitlab.csos95.com/csos95/mylogger
https://gitlab.csos95.com/csos95/myproject
What did you expect to see?
vgo to find mylogger and build myproject without errors
What did you see instead?
The text was updated successfully, but these errors were encountered: