Skip to content

Commit

Permalink
fix regression causing non-optional inputs to be treated as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ssadedin committed Dec 8, 2024
1 parent dd6cbff commit e87b86d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/groovy/bpipe/MultiPipelineInput.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class MultiPipelineInput extends PipelineInput implements Iterable {
}
addFilterExts(boxed)

if(boxed.empty && !this.optional)
if(boxed.empty && !super.isFlaggedAsOptional())
throw new InputMissingError("Expected one or more inputs with extension '" + this.extensionPrefix + "' but none could be located from pipeline.")

return boxed
Expand Down
4 changes: 4 additions & 0 deletions src/main/groovy/bpipe/PipelineInput.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,10 @@ class PipelineInput {
return this
}

boolean isFlaggedAsOptional() {
return this.@optional
}

String flag(String flag) {
return withFlag(flag)
}
Expand Down

0 comments on commit e87b86d

Please sign in to comment.