You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to inject an integer into the environment from an input value yields the following:
'envValue expression must evaluate to a str. Got '6' for expression '$(inputs.threads)'.
any minimal .cwl that has includes the following would produce the same error:
requirements:
- class: EnvVarRequirement
envDef:
THREADS: $(inputs.threads)
inputs:
threads:
doc: |-
The number of parallel iterations.
type: string
default: 4
As it is "threads" it should not accept anything other than an integer. I can think of a JS workaround converting it to a string but why exactly can't this be other flat atomic values?
I confirmed that it is indeed only accepting string inputs here: https://www.commonwl.org/v1.0/CommandLineTool.html#EnvVarRequirement
cwltool version: 3.1.20211107152837
The text was updated successfully, but these errors were encountered:
mr-c
transferred this issue from common-workflow-language/cwl-v1.2
Oct 24, 2022
Trying to inject an integer into the environment from an input value yields the following:
any minimal .cwl that has includes the following would produce the same error:
As it is "threads" it should not accept anything other than an integer. I can think of a JS workaround converting it to a string but why exactly can't this be other flat atomic values?
I confirmed that it is indeed only accepting string inputs here:
https://www.commonwl.org/v1.0/CommandLineTool.html#EnvVarRequirement
cwltool version: 3.1.20211107152837
The text was updated successfully, but these errors were encountered: