Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cwltool does not recognize equivalent types #1306

Open
ghost opened this issue Jun 15, 2020 · 0 comments
Open

cwltool does not recognize equivalent types #1306

ghost opened this issue Jun 15, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 15, 2020

../types/singletype.yml

name: simple_record
type: record
fields:
  prop: string

../tools/clt2.cwl

#!/usr/bin/env cwl-runner

# Inline schemadef

class: CommandLineTool
cwlVersion: v1.0

requirements:
  SchemaDefRequirement:
    types:
      - name: user_type1
        type: record
        fields:
            - name: prop
              type: string

inputs:
  in1: user_type1

outputs:
  out1:
    type: user_type1
    outputBinding:
      outputEval: $(inputs.in1)

baseCommand: []
arguments: []

../workflows/wf1.cwl

class: Workflow
cwlVersion: v1.0
inputs:
  in1: ../types/singletype.yml#simple_record

steps:
  s1:
    run: ../tools/clt2.cwl
    in:
      in1: in1
    out: [out1]
    
outputs:
    out1: 
      type: user_type1
      outputSource: s1/out1

requirements:
  SchemaDefRequirement:
    types:
    - $import: ../types/singletype.yml
    - name: user_type1 
      type: record
      fields:
          - name: prop
            type: string

cwltool --validate claims all of these are different types, when in fact they are identical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants