-
Notifications
You must be signed in to change notification settings - Fork 192
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
modules list doesn't work for custom remotes with a subproject #1721
Comments
This just breaks most other functionality |
Changing the last line of this method to only return the last 2 parts of the path "seems" to work? Whether that has undesirable side-effects I do not know. For any GitHub repo this should return the same as before. |
Thank you for reporting! I think the issue is deeper than this sadly-- as you suspected large parts of the codebase still depends on that git remotes have the same directory structure as GitHub repos. The root of the issue is that in many of the commands we try to determine the available modules in a pipeline from the directory structure rather than from the |
How robust/thorough are the CI-tests for this? If I go through and try to make fixes would a passing PR tests be a good sign or is it more involved? |
Most of the CI for the modules depends on that this works in one way or another, so if you mess something up the tests are likely to fail ;) But I think a good solution to this will be rather involved, so I'll assign myself to it. |
That was fast! I'll try and pull those changes into my fork and have a play later today. |
Is there an existent modules repo where the basepath is not |
No, but there should be and there should be CI for it as well. I'll create a seperate issue for it. |
Closing due to merge of #1724. |
Description of the bug
Our remote repo has the format
<organisation>/<subgroup>/<modules>
and this works fine when installing modules from the remote.The content of our
modules.json
as generated bynf-core modules install
is:I think this is mainly an unsupported part of GitLab, and looking at the code there are a lot of assumptions that repos follow the
GitHub
pattern ofowner/name
so accommodating this may be overly onerous.Perhaps there is a workaround though?
Command used and terminal output
System information
nf-core/tools version 2.5.dev0
python 3.9.7
The text was updated successfully, but these errors were encountered: