tools
tools copied to clipboard
Support patch file when recreating `modules.json`
Description of feature
When the modules.json is removed in a pipeline containing patched modules, and then recreated using a nf-core modules command, the create method is unable to determine git shas for patched modules. Fixing this should be rather easy: Just apply the patch in reverse and try to find the commit sha from the original files. Bail if the patch reversal fails or if the original file does not match any in the remote.