nextflow-io/nextflow

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

Open

#5,073 创建于 2024年6月18日

在 GitHub 查看
 (3 评论) (0 反应) (1 负责人)Groovy (784 fork)batch import
error-improvementsgood first issue

仓库指标

Star
 (3,382 star)
PR 合并指标
 (平均合并 3天 18小时) (30 天内合并 38 个 PR)

描述

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)

贡献者指南