Skip to content

Workflow output definition (2nd preview) not publishing #5658

@LDeakin

Description

@LDeakin

Bug report

I tried the second preview of workflow output definition with 24.10.3, but I can't seem to get it to publish anything.

Expected behavior and actual behavior

nextflow.preview.output = true // https://www.nextflow.io/docs/latest/workflow.html#publishing-outputs

process foo {
    output:
    path 'result.txt' // , emit: results

    script:
    """
    touch result.txt
    """
}

workflow {
    main:
    ch_foo = foo()

    publish:
    ch_foo >> 'foo'
}
nextflow run -output-dir results/ workflows/bug2.nf
 N E X T F L O W   ~  version 24.10.3

Launching `workflows/bug2.nf` [maniac_poisson] DSL2 - revision: 94997acd6d

WARN: WORKFLOW OUTPUT DSL IS A PREVIEW FEATURE - SYNTAX AND FUNCTIONALITY CAN CHANGE IN FUTURE RELEASES
executor >  local (1)
[8a/637329] foo [100%] 1 of 1 ✔

I would expect result.txt to appear under results/ somewhere, but results/ is not even created.

Environment

  • Nextflow version: 24.10.3
  • Java version: 17.0.2
  • Operating system: :Linux
  • Bash version: 4.4.20

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions