Skip to content

Commit

Permalink
Merge pull request #1690 from ErikDanielsson/fix-bug-localmod
Browse files Browse the repository at this point in the history
Fix bug in ModulesJson
  • Loading branch information
ErikDanielsson authored Jul 21, 2022
2 parents d363205 + 70f5175 commit 1d427a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
2 changes: 1 addition & 1 deletion nf_core/modules/modules_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 1d427a2

Please sign in to comment.