modules lint: a meta.yml lock_file path that does not exist should fail, not warn

Open Beginner friendly
#4,607 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@pinin4fjords is already working on this.

Since Nov 11, 2026.

  • #4608 by @pinin4fjords — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
testing

Research direction

Start in nf_core/modules/lint/module_containers.py at containers_conda_lock_exists and inspect how it handles a configured lock_file whose path is missing. Run nf-core modules lint eautils/gtf2bed or the relevant lint tests to see the current warning. Make a set-but-missing path fail while a missing lock_file remains a warning.

Written by the indexing model from the issue text.

Description

bug
Description of the bug

containers_conda_lock_exists in nf_core/modules/lint/module_containers.py emits only a warning when a meta.yml lock_file path points at a file that does not exist, so a stale path passes CI.

This happened with eautils/gtf2bed in nf-core/modules: after the rename from ea-utils/gtf2bed, the lock_file entries still pointed at modules/nf-core/ea-utils/gtf2bed/.conda-lock/... (fixed in nf-core/modules#13697). Pipelines that generate their conda_lock_files configs from meta.yml inherit the dead path (seen in nf-core/rnaseq#1996). As more modules move to this structure, renames are likely to hit it again.

Suggestion: make "lock_file is set but the file does not exist" a failure. "lock_file missing" can stay a warning.

Command used and terminal output
$ nf-core modules lint eautils/gtf2bed   # nf-core/modules before #13697
[✔]  69 Tests Passed
[!]   2 Test Warnings   # containers_conda_lock_exists: Conda lock_file not found for linux/amd64 and linux/arm64
[✗]   0 Tests Failed
System information

nf-core/tools 4.1.0 (the check is unchanged on dev)

Dominant language
Python
Stars
333
Forks
273
Avg merge
1d 18h
Merged PRs (30d)
51

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nf-core/tools

All issues in nf-core/tools

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.