-
Couldn't load subscription status.
- Fork 700
Fix hang when running as a subprocess #484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
| @@ -0,0 +1,12 @@ | |||
| require("child_process").spawn("go", [ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting testing approach 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went the "pure go" approach first with no success --I had a few iterations on it before I gave up and went this approach.
Signed-off-by: Alex Goodman <[email protected]>
Today if you run grype as a subprocess you may see it hang forever. This is due to grype waiting for input in stdin in cases when it shouldn't be. This PR makes two changes:
Additional changes were made that were related:
This addresses a regression from v0.23.0 to v0.24.0 reported in community slack. Fixes #267 .