Skip to content

launch: send false Nextflow flags and pick the File/Dir union variant by type - #626

Open
rpinho wants to merge 1 commit into
latchbio:mainfrom
rpinho:fix-latch-launch-types
Open

rpinho wants to merge 1 commit into
latchbio:mainfrom
rpinho:fix-latch-launch-types

Conversation

@rpinho

@rpinho rpinho commented Nov 18, 2026

Copy link
Copy Markdown

get_flag("skip_qc", False) returns [], so a Nextflow parameter whose pipeline default is true cannot be turned off from a Latch launch.
Separately, passing a LatchFile or LatchDir to a Union[LatchFile, LatchDir] input through convert_inputs_to_literals raises "Multiple possible union variants", because both blob variants accept either value.
The patch emits --name false for False, and blob conversion now rejects a LatchFile for a multipart blob type and a LatchDir for a single-file blob type; URI strings and LPath values convert as before.
Tests cover True, False and None flags, union selection for both types, rejection of the swapped types, and conversion of URI strings and LPath values for both blob dimensions.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N

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.

1 participant