From e6cc401fb9f93b3d428bf5c5218557c66f26d73e Mon Sep 17 00:00:00 2001 From: Matthieu Muffato Date: Tue, 15 Jul 2025 22:45:38 +0100 Subject: [PATCH 1/2] With cross-org repos, components can be dictionaries whose (only) key is the component name --- nf_core/subworkflows/lint/meta_yml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nf_core/subworkflows/lint/meta_yml.py b/nf_core/subworkflows/lint/meta_yml.py index 0e62cccfc9..416f0d630d 100644 --- a/nf_core/subworkflows/lint/meta_yml.py +++ b/nf_core/subworkflows/lint/meta_yml.py @@ -115,7 +115,7 @@ def meta_yml(subworkflow_lint_object, subworkflow, allow_missing: bool = False): # join included modules and included subworkflows in a single list included_components_names = [component["name"] for component in included_components] if "components" in meta_yaml: - meta_components = [x for x in meta_yaml["components"]] + meta_components = [x if isinstance(x, str) else list(x)[0] for x in meta_yaml["components"]] for component in set(included_components_names): if component in meta_components: subworkflow.passed.append( From ae7ca23469bf5326da97c89f2d41ac0583fc449f Mon Sep 17 00:00:00 2001 From: nf-core-bot Date: Tue, 15 Jul 2025 21:58:25 +0000 Subject: [PATCH 2/2] [automated] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6890d5ea3..6c7a9a8adf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ - don't read param expressions with spaces as params ([#3674](https://github.com/nf-core/tools/pull/3674)) - Update marocchino/sticky-pull-request-comment digest to 7737449 ([#3681](https://github.com/nf-core/tools/pull/3681)) +- Validation of meta.yaml in cross-org repos ([#3680](https://github.com/nf-core/tools/pull/3680)) ## [v3.3.2 - Tungsten Tamarin Patch 2](https://github.com/nf-core/tools/releases/tag/3.3.2) - [2025-07-08]