Skip to content

fix: replaces multi-option placeholders with function equivalents - #1812

Open
claymcleod wants to merge 2 commits into
broadinstitute:developfrom
claymcleod:fix/duplicate-placeholder-options
Open

fix: replaces multi-option placeholders with function equivalents#1812
claymcleod wants to merge 2 commits into
broadinstitute:developfrom
claymcleod:fix/duplicate-placeholder-options

Conversation

@claymcleod

@claymcleod claymcleod commented Apr 11, 2026

Copy link
Copy Markdown

Continuing the sprocket lint cleanup, this fixes the cases where multiple placeholder options were combined in a single expression (e.g., default + sep, or a true/false guard paired with a default + sep placeholder on the same variable). These are replaced with the equivalent prefix(), sep(), and select_first() function calls.

Depends on #1811.

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.
@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