nextflow-io / nextflow

A DSL for data-driven computational pipelines
http://nextflow.io
Apache License 2.0
2.61k stars 605 forks source link

"Missing project main script" error when there is a directory with the workflow name #5073

Open lazappi opened 1 week ago

lazappi commented 1 week ago

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

nextflow.log

Environment

bentsherman commented 1 week ago

Maybe we should show the fully resolved project name in the log, either a git repository url or absolute path

deekshithpranav commented 1 week ago

I would like to work on this issue. @bentsherman can you assign this to me?

deekshithpranav commented 1 week ago

Can you review my PR @bentsherman ?