nextflow-io/nextflow

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

Open

#5.073 geöffnet am 18. Juni 2024

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Groovy (784 Forks)batch import
error-improvementsgood first issue

Repository-Metriken

Stars
 (3.382 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 3T 18h) (38 gemergte PRs in 30 T)

Beschreibung

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

  • 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)

Contributor Guide