Skip to content

Workflow publish directive for channels can not take empty relative path #5371

@siddharthab

Description

@siddharthab

Bug report

Expected behavior and actual behavior

When using the new output feature, the root output directory is specified separately, and then each channel takes a relative path. There is currently no way to specify that the files should be written to the output directory directly. One could use '.', but that is a POSIX specific syntax and not valid syntax for cloud storage URLs like Google Cloud Storage.

I think this is just a side-effect of using the truthy-ness of the values to check whether to publish or not.

Steps to reproduce the problem

workflow {
  ch = Channel.fromPath('*')
  publish:
  ch >> ''
}

output {
  directory 'gs://my-cloud-path'
}

Program output

Program completes execution without the files being copied.

Environment

  • Nextflow version: 24.04.4 build 5917
  • Java version: OpenJDK Runtime Environment Zulu21.28+85-CA (build 21+35)
  • Operating system: macOS
  • Bash version: zsh 5.9 (arm64-apple-darwin24.0)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions