diff --git a/CHANGELOG.md b/CHANGELOG.md index f012e018f5..4f72f0e634 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,7 @@ - Command `nf-core modules test` obtains module name suggestions from installed modules ([#1624](https://github.com/nf-core/tools/pull/1624)) - Add `--base-path` flag to `nf-core modules` to specify the base path for the modules in a remote. Also refactored `modules.json` code. ([#1643](https://github.com/nf-core/tools/issues/1643)) - Rename methods in `ModulesJson` to remove explicit reference to `modules.json` +- Fix bug in `ModulesJson.check_up_to_date` causing it to ask for the remote of local modules ## [v2.4.1 - Cobolt Koala Patch](https://github.com/nf-core/tools/releases/tag/2.4) - [2022-05-16] diff --git a/nf_core/modules/modules_json.py b/nf_core/modules/modules_json.py index cd9b09c23d..2f380bcafe 100644 --- a/nf_core/modules/modules_json.py +++ b/nf_core/modules/modules_json.py @@ -247,7 +247,7 @@ def check_up_to_date(self): dirs = [ os.path.relpath(dir_name, start=self.modules_dir) for dir_name, _, file_names in os.walk(self.modules_dir) - if "main.nf" in file_names + if "main.nf" in file_names and not os.path.relpath(dir_name, start=self.modules_dir).startswith("local") ] missing_from_modules_json = []