fix(factory): support '-' as stdin sentinel for --input-file#337
Merged
Conversation
Treat `--input-file -` as a request to read input from stdin, matching the convention used by curl, kubectl, jq, and other Unix tools. Without this, the resolver attempted to open a file literally named `-` and failed with "file not found: -".
Contributor
✅MegaLinter analysis: Success
See detailed reports in MegaLinter artifacts MegaLinter is graciously provided by OX Security |
JoshMock
approved these changes
May 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--input-file -as a request to read JSON input from stdin, matching the Unix convention used by curl, kubectl, jq, and similar tools.elastic <cmd> --input-file -failed withError: --input-file: file not found: -because the resolver passed-toreadFileSyncunconditionally.-sentinel before the file-read branch and delegates to the existing module-levelstdinReader; error messages continue to use the--input-filesource label for consistency.Closes #335