Repository navigation
Add newlines and set command to fix #3416 - #3417
mahesh-panchal wants to merge 2 commits into
Conversation
ewels
left a comment
There was a problem hiding this comment.
Please don't merge this until we confirm that it isn't a problem on the Nextflow side.
I think that process.shell is used in more places than just the header of .command.sh which is how we got here in the first place, as it broke in .command.run. So multi-line commands can be problematic.
|
Yeah, I think today's Nextflow PR will trigger a failure if we merge this PR. See here: if( !it || it.contains('\n') || it.contains('\r') )
throw new IllegalArgumentException("Directive `process.shell` cannot contain new-line characters - offending value: ${shell}") |
|
The alternative is to modify the modules template to set these flags and a mass nf-core modules update to insert the flags. And then remove the flags from the shebang. |
|
I think that there should be a better way. I think even setting Lots in play at the moment, see also nextflow-io/nextflow#5684 |
|
Closing as the old method actually works, and I made a mistake in testing. |
Fixes the fix to template #3416.
PR checklist
CHANGELOG.mdis updateddocsis updated