diff --git a/CHANGELOG.md b/CHANGELOG.md index d3c0792519..d64c03267e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ ### Linting - Warn if container access is denied ([#2270](https://github.com/nf-core/tools/pull/2270)) +- Error if module container specification has quay.io as prefix when it shouldn't have. ### Modules diff --git a/nf_core/modules/lint/main_nf.py b/nf_core/modules/lint/main_nf.py index 102d5ead12..bfdb92c5cf 100644 --- a/nf_core/modules/lint/main_nf.py +++ b/nf_core/modules/lint/main_nf.py @@ -290,6 +290,14 @@ def check_process_section(self, lines, fix_version, progress_bar): else: self.failed.append(("docker_tag", "Unable to parse docker tag", self.main_nf)) docker_tag = None + if l.startswith("quay.io/biocontainers") and not l.startswith("quay.io/biocontainers/mulled"): + self.failed.append( + ( + "container_links", + "quay.io/biocontainers prefix found, please use biocontainers instead", + self.main_nf, + ) + ) if l.startswith("biocontainers/"): # When we think it is a biocontainer, assume we are querying quay.io/biocontainers and insert quay.io as prefix l = "quay.io/" + l