Skip to content

generating nameroot when not provided explicitly from basename Issue#268 - #338

Closed
kapilkd13 wants to merge 2 commits into
common-workflow-language:masterfrom
kapilkd13:nameroot
Closed

kapilkd13 wants to merge 2 commits into
common-workflow-language:masterfrom
kapilkd13:nameroot

Conversation

@kapilkd13

@kapilkd13 kapilkd13 commented Mar 19, 2017 •

Copy link
Copy Markdown
Contributor

When a file is provided in input along with its path and nameroot is not provided, cwltool throws exception. In this PR we are generating nameroot if it is not provide explicitly using basename. Issue #268

@cwl-bot

cwl-bot commented Mar 19, 2017

Copy link
Copy Markdown

Can one of the admins verify this patch?

@kapilkd13

Copy link
Copy Markdown
Contributor Author

Hi, This PR is failing on a unit test. It is generating nameroot field from basename, when a File is specified. But this behavior is expected. After getting your review on it, I would update testcase. Thanks

@mr-c

mr-c commented Mar 22, 2017

Copy link
Copy Markdown
Member

Thank you @kapilkd13 -- the other place we set the nameroot is at https://github.com/common-workflow-language/cwltool/blob/master/cwltool/draft2tool.py#L154

We need to decide if the duplication is okay, or if this change eliminates the need for the other setting of nameroot.

Any thoughts, @tetron ?

@undu

undu commented May 1, 2017

Copy link
Copy Markdown
Contributor

When I execute a workflow with a dir, I get this warning, even though I do not define the "nameroot" field

jobs/textures-job.yml:2:3: invalid field `nameroot`, expected one of: 'class', 'location', 'path', 'basename', 'listing'

But I have to say the workflow that was blocked by #268 now works. 👍

@undu

undu commented Jun 8, 2017 •

Copy link
Copy Markdown
Contributor

The current patch is a bit iffy, when the filename doesn't have an extension it's considered that it has no nameroot.

@kapilkd13

Copy link
Copy Markdown
Contributor Author

Closing this PR. See this PR by @undu

@kapilkd13 kapilkd13 closed this Jun 9, 2017
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

Successfully merging this pull request may close these issues.

5 participants