diff --git a/CHANGELOG.md b/CHANGELOG.md index 80e28b6da2..9bd952609e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ - Add mypy to pre-commit config for the tools repo ([#2545](https://github.com/nf-core/tools/pull/2545)) - Use Path objects for ComponentCreate and update the structure of components templates ([#2551](https://github.com/nf-core/tools/pull/2551)). - GitPod base image: swap tool installation back to `conda` from `mamba` ([#2566](https://github.com/nf-core/tools/pull/2566)). +- Sort the `installed_by` list in `modules.json` ([#2570](https://github.com/nf-core/tools/pull/2570)). - Unset env variable JAVA_TOOL_OPTIONS in gitpod ([#2569](https://github.com/nf-core/tools/pull/2569)) # [v2.10 - Nickel Ostrich](https://github.com/nf-core/tools/releases/tag/2.10) + [2023-09-25] diff --git a/nf_core/modules/modules_json.py b/nf_core/modules/modules_json.py index 354a61dac9..8423f1075c 100644 --- a/nf_core/modules/modules_json.py +++ b/nf_core/modules/modules_json.py @@ -679,7 +679,7 @@ def update( repo_component_entry[component_name]["installed_by"] = [installed_by] finally: new_installed_by = repo_component_entry[component_name]["installed_by"] + list(installed_by_log) - repo_component_entry[component_name]["installed_by"] = [*set(new_installed_by)] + repo_component_entry[component_name]["installed_by"] = sorted([*set(new_installed_by)]) # Sort the 'modules.json' repo entries self.modules_json["repos"] = nf_core.utils.sort_dictionary(self.modules_json["repos"])