Skip to content

fix: quote integer literals in placeholder default options - #1814

Open
claymcleod wants to merge 3 commits into
broadinstitute:developfrom
claymcleod:fix/placeholder-default-types
Open

fix: quote integer literals in placeholder default options#1814
claymcleod wants to merge 3 commits into
broadinstitute:developfrom
claymcleod:fix/placeholder-default-types

Conversation

@claymcleod

Copy link
Copy Markdown

Placeholder options like default expect string values per the WDL spec. This quotes the bare integer literals (default=0 to default="0", default=250 to default="250") in GermlineVariantDiscovery.wdl and UltimaGenomicsWholeGenomeGermlineTasks.wdl.

Depends on #1812.

Placeholders in WDL cannot contain more than one option (e.g.,
`default` + `sep` or `true`/`false` paired with a second `default`
+ `sep` placeholder). This rewrites those expressions using
`prefix()`, `sep()`, and `select_first()` to satisfy `sprocket lint`
while preserving the original command-line output.
Placeholder options like `default` expect string values. Changes
`default=0` to `default="0"` and `default=250` to
`default="250"` across two task files.
@jessicaway

Copy link
Copy Markdown
Member

@claymcleod Thanks so much for this contribution and highlighting the syntax issue here. Unfortunately, we do not yet have tests for any of the AoU pipelines and cannot change them at this time. We will keep this open to revisit in the future.

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.

2 participants