diff --git a/CHANGELOG.md b/CHANGELOG.md index b0ae4b39fc..8c39115f5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ - Substitute ModulesCommand and SubworkflowsCommand by ComponentsCommand ([#2000](https://github.com/nf-core/tools/pull/2000)) - Don't print source file + line number on logging messages (except when verbose) ([#2015](https://github.com/nf-core/tools/pull/2015)) - Extended the chat notifications to Slack ([#1829](https://github.com/nf-core/tools/pull/1829)) +- Allow other remote URLs not starting with `http` ([#2061](https://github.com/nf-core/tools/pull/2061)) ### Modules diff --git a/nf_core/modules/modules_json.py b/nf_core/modules/modules_json.py index 75a0332db5..0c6ed019ad 100644 --- a/nf_core/modules/modules_json.py +++ b/nf_core/modules/modules_json.py @@ -478,7 +478,12 @@ def has_git_url_and_modules(self): elif ( not isinstance(repo_url, str) or repo_url == "" - or not repo_url.startswith("http") + or not ( + repo_url.startswith("http") + or repo_url.startswith("ftp") + or repo_url.startswith("ssh") + or repo_url.startswith("git") + ) or not isinstance(repo_entry["modules"], dict) or repo_entry["modules"] == {} ):