common-workflow-language / common-workflow-language/cwltool

Need a better error message when using extensions without `--enable-ext`

Open
#2,295 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
376
Forks
255
Avg merge
2d 7h
Merged PRs (30d)
12

Description

**Prerequisites:**

* cwltool 3.2.20260413085819
* I have saved [https://github.com/common-workflow-language/cwltool/blob/8949fc2d68efe128ce841739d1190645dbd233bb/tests/wf/secret_job.cwl](https://github.com/common-workflow-language/cwltool/blob/8949fc2d68efe128ce841739d1190645dbd233bb/tests/wf/secret_job.cwl) as `job.cwl`

**Scenario:**

I run:

```bash
cwltool job.cwl --pw="password"
```

**Current result:**

I’m not sure whether the secrets are being handled correctly, as I see the following warning in the logs:

```
WARNING job.cwl:7:3: Warning: checking item
Warning: Field 'class' contains undefined reference to
'http://commonwl.org/cwltool#Secrets'
```

Thanks.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing tests/wf/secret_job.cwl and reproduce the reported command, cwltool job.cwl --pw="password", to understand the warning when --enable-ext is omitted. Trace where the undefined reference warning is emitted and make the resulting error message clearly explain the required extension setting; done when the scenario gives actionable feedback.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.