Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New module structure breaks patch file functionality #1868

Closed
adamrtalbot opened this issue Oct 4, 2022 · 0 comments
Closed

New module structure breaks patch file functionality #1868

adamrtalbot opened this issue Oct 4, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@adamrtalbot
Copy link
Contributor

adamrtalbot commented Oct 4, 2022

Description of the bug

After the recent update to the new module structure in https://github.com/nf-core/modules, all nf-core modules operations. When using the latest version of nf-core tools (dev, 2.6) many errors are occurring which are being solved as part of #1867

However! diff files created by previous versions of nf-core module patch still cause problems. The existing paths create issues for the tools:

nf-core modules update --all -y
...
FileNotFoundError: [Errno 2] No such file or directory: 'modules/nf-core/modules/bcftools/filter/bcftools-filter.diff'

To recreate this problem, clone the repo: https://github.com/adamrtalbot/rnaseq/tree/nf-core_2.6_update_problems and run nf-core modules update. This repo has had a patch applied to the tar module with v2.5.1 and is then updated to 2.6 afterwards.

To fix:

  • The path must be corrected in the modules.json
  • The paths within the .diff file itself must be corrected

Once this is done nf-core modules functionality works.

This does not seem to affect patches performed after updating to 2.6.

Command used and terminal output

nf-core modules update

# On repo: https://github.com/adamrtalbot/rnaseq/tree/nf-core_2.6_update_problems

System information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant