Skip to content
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

Fix issue where tool and subtool have the same name #3156

Merged
merged 3 commits into from
Sep 5, 2024

Conversation

nvnieuwk
Copy link
Contributor

@nvnieuwk nvnieuwk commented Sep 3, 2024

The linting on the current dev branch was failing with this error when it encountered a module where the tool and the subtool have the same name (tabix/tabix, happy/happy...):

LookupError: Could not find branch information for component 'happy/happy/happy'.Please remove the 'modules.json' and rerun the command to recreate it

@awgymer and I debugged and solved this like this.
This PR checks if the tool and subtool have the same name and in that case it will move the org index one back so it will always pick the right name for the organization.

Copy link
Contributor

@awgymer awgymer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Do we have tests that cover this part of the code? Any chance we can add a test-case that covers it if we do?

@nvnieuwk
Copy link
Contributor Author

nvnieuwk commented Sep 5, 2024

i added a test for tabix/tabix :p

@nvnieuwk nvnieuwk merged commit 308baef into nf-core:dev Sep 5, 2024
83 checks passed
@nvnieuwk nvnieuwk deleted the fix/tool-subtool-same-name branch September 5, 2024 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants