tools icon indicating copy to clipboard operation
tools copied to clipboard

Support patch file when recreating `modules.json`

Open ErikDanielsson opened this issue 3 years ago • 0 comments

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.

ErikDanielsson avatar Aug 02 '22 17:08 ErikDanielsson