Skip to content

Validation of Azure directory-paths causes issues #16

@apetkau

Description

@apetkau

I am trying to run a pipeline within Azure and use an Azure path for the output directory (e.g., az://12345/outputs/). However, the validation of this path causes issues:

Nov-03 16:19:26.907 [main] DEBUG nextflow.cli.Launcher - Operation aborted
nextflow.validation.SchemaValidationException: The following invalid input values have been detected:

* --outdir: 'az://12345/outputs/' is not a directory, but a file (az://12345/outputs/)

	at nextflow.validation.SchemaValidator.validateParameters(SchemaValidator.groovy:399)
	at nextflow.validation.SchemaValidator.validateParameters(SchemaValidator.groovy)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
...

This seems to be related to the outdir defined as format directory-path in the nextflow_schema.json file:

"outdir": {
    "type": "string",
    "format": "directory-path",
    "description": "The output directory where the results will be saved. You have to use absolute paths to storage on Cloud infrastructure.",
    "fa_icon": "fas fa-folder-open"
},

If the directory-path format is removed (or replaced with file-path), the pipeline successfully executes.

I am wondering if someone could help out with this? I am using the most recent version of nf-validation (1.1.1). Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions