Skip to content

--pack should preserve @namespace #584

Closed
@anton-khodak

Description

@anton-khodak

Expected Behavior

cwltool should resolve file formats specified as links (e.g., after --pack-ing a workflow)

Steps to reproduce

cd /path/to/common-workflow-language/v1.0/v1.0
cwltool --pack formattest2.cwl > formattest2-packed.cwl
cwltool formattest2-packed.cwl formattest2-job.json

Expected output:

{
    "output": {
        "format": "http://edamontology.org/format_2330", 
        "checksum": "sha1$97fe1b50b4582cebc7d853796ebd62e3e163aa3f", 
        "basename": "output.txt", 
        "location": "file:///Users/anton/Programming/CWL/cwltool/cwltool/schemas/v1.0/output.txt", 
        "path": "/Users/anton/Programming/CWL/cwltool/cwltool/schemas/v1.0/output.txt", 
        "class": "File", 
        "size": 1111
    }
}

Produced output:

{
    "output": {
        "format": "edam:format_2330", 
        "checksum": "sha1$97fe1b50b4582cebc7d853796ebd62e3e163aa3f", 
        "basename": "output.txt", 
        "location": "file:///Users/anton/Programming/CWL/cwltool/cwltool/schemas/v1.0/output.txt", 
        "path": "/Users/anton/Programming/CWL/cwltool/cwltool/schemas/v1.0/output.txt", 
        "class": "File", 
        "size": 1111
    }
}

Your Environment

  • cwltool version:
    1.0.20171107133715

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