nextflow-io/nextflow

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

已关闭

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

 (3 条评论) (0 个反应) (1 位负责人)Groovy (784 个派生)batch import
error-improvementsgood first issuetriage/investigate

仓库指标

星标
 (3,382 个星标)
PR 合并指标
 (平均合并 16天 9小时) (30 天内合并 54 个 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)

贡献者指南