Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
### Modules

- Add `topics` to the template + update linting ([#3779](https://github.com/nf-core/tools/pull/3779))
- Preserve the value of self.modules_repo across nested calls ([#3881](https://github.com/nf-core/tools/pull/3881))

### Subworkflows

Expand Down
3 changes: 3 additions & 0 deletions nf_core/components/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ def install_included_components(self, subworkflow_dir):
"""
Install included modules and subworkflows
"""
ini_modules_repo = self.modules_repo
modules_to_install, subworkflows_to_install = get_components_to_install(subworkflow_dir)
for s_install in subworkflows_to_install:
original_installed = self.installed_by
Expand All @@ -208,6 +209,8 @@ def install_included_components(self, subworkflow_dir):
self.install(m_install, silent=True)
self.component_type = original_component_type
self.installed_by = original_installed
# self.install will have modified self.modules_repo. Restore its original value
self.modules_repo = ini_modules_repo

def collect_and_verify_name(
self, component: str | None, modules_repo: "nf_core.modules.modules_repo.ModulesRepo"
Expand Down