Running nf-core modules update --save-diff
when file was created or removed
#1694
Labels
bug
Something isn't working
Description of the bug
nf-core modules update --save-diff
promises that it can write module changes to a.diff
file, and then complete the update withgit apply <diff-file>
. If a file was removed or created, this is written as a message in the.diff
file. However,git apply
can't use this information, not for removing files and in particular not for creating files since the file is not available. This will lead to bugs, since the command promises more than it can deliver. I would therefore suggest that the command fails if the update involves removing or creating files, and instead suggest that the user use either the plainupdate
command or the--preview
optionCommand used and terminal output
nf-core modules update --save-diff
System information
nf-core/tools 2.5dev
The text was updated successfully, but these errors were encountered: