-
Notifications
You must be signed in to change notification settings - Fork 152
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
Suggestion for install_gitlab #420
Comments
This sounds like an interesting idea, do you want to try a PR for this? |
Sure, I'll give it a try. |
After having looked more carefully in the code and the related issues it seems difficult/impossible to distinguish between subgroups and subdir from the repo path alone. (As others have concluded previously 😳) Would it be okay to have a |
One more question: Assuming the subdir / subgroup issue is fixed, there is still the problem of repos with a dot in the name. I see two ways:
Do you have a preference? |
I would not want to change all the other install functions for this, so I think we have to get the metadata twice. |
Sounds good to me. What about |
There are currently some problems with
install_gitlab
as pointed out in this PR: #308Furthermore, I am having problems downloading repos with a dot in the name. This is an issue in the GitLab REST API.
But there is another way of accessing repos on GitLab besides the
path/to/repo
: Every repo has a project id and according to the official docs this can be used instead of the path.The id can be accessed from the "metadata" of the repo that is already downloaded as part of
install_gitlab
-- check e.g.https://gitlab.com/api/v4/projects/jimhester%2Fcovr
https://gitlab.com/api/v4/projects/1486846
The number in the second URL is found in the first.
This metadata can be downloaded in both the problematic situations described above, so if the project id is extracted from the metadata and passed along to
remote_download.gitlab_remote
I think this would solve both problems.The text was updated successfully, but these errors were encountered: