nextflow
nextflow copied to clipboard
"Missing project main script" error when there is a directory with the workflow name
Bug report
Expected behavior and actual behavior
Expected behaviour
Pipelines runs successfully
Actual behaviour
Nextflow exist with a Missing project main script
error when run in a specific directory
What was happening?
The directory contained a sub-directory with the same name as the workflow. Presumably Nextflow was then looking in that directory instead of pulling the remote workflow.
I think that's reasonable behaviour but it would be nice to have a more informative error message if possible and wanted to note it down in case someone else had the same problem.
Steps to reproduce the problem
mkdir hello
nextflow run hello
Program output
N E X T F L O W ~ version 24.04.2
Missing project main script: hello/main.nf
Environment
- Nextflow version:
24.04.2 build 5914
- Java version:
openjdk 21.0.3 2024-04-16
- Operating system: Ubuntu
- Bash version:
zsh 5.9 (x86_64-pc-linux-gnu)