nextflow-io / nf-prov

Apache License 2.0
23 stars 11 forks source link

Double slash on GCP leads to error #34

Open FriederikeHanssen opened 1 month ago

FriederikeHanssen commented 1 month ago

We are using the plugin in sarek here. When we have an outdir with a trailing slash, it leads to the following error:

The workflow execution failed to start. Exit status: 1

tee: /.nextflow/cache/nf-5A4aMc8MihPfiZ.txt: No such file or directory
N E X T F L O W  ~  version 24.04.2
Pulling FriederikeHanssen/sarek ...
 downloaded from https://github.com/FriederikeHanssen/sarek.git
Launching `https://github.com/FriederikeHanssen/sarek` [pedantic_wiles] DSL2 - revision: ec7bf3e65f [issue_1580]
Downloading plugin nf-validation@1.1.3
Downloading plugin nf-prov@1.2.2
ERROR ~ I/O not allowed on dot-dirs or extra slashes when !permitEmptyPathComponents: /rike/test_with_trailing_slash//pipeline_info/manifest_2024-07-02_15-14-49.bco.json

Other elements in that config work with a very similar output name declaration (i.e . https://github.com/nf-core/sarek/blob/b5b766d3b4ac89864f2fa07441cdc8844e70a79e/nextflow.config#L381) , which made us wonder if there is anything in particular to how this is handeled in this plugin.

bentsherman commented 1 month ago

Try nf-prov@1.2.3 and let me know if it's fixed