-
Notifications
You must be signed in to change notification settings - Fork 776
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
fix: piping input in gator #2589
Conversation
if err != nil { | ||
return nil, fmt.Errorf("getting stdin info: %w", err) | ||
} | ||
|
||
if stdinfo.Size() == 0 { |
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.
so why is this breaking piping? from my understanding and offline convos, data is being actively piped so the buffer may not have data yet so we bail too early.
Signed-off-by: Alex Pana <[email protected]>
Signed-off-by: Alex Pana <[email protected]>
Signed-off-by: Alex Pana <[email protected]>
Signed-off-by: Alex Pana <[email protected]>
f50d7ae
to
fc77db5
Compare
Codecov ReportBase: 53.68% // Head: 53.67% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #2589 +/- ##
==========================================
- Coverage 53.68% 53.67% -0.01%
==========================================
Files 120 120
Lines 10634 10634
==========================================
- Hits 5709 5708 -1
- Misses 4496 4497 +1
Partials 429 429
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
LGTM
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.
Thank you! LGTM
Co-authored-by: Sertaç Özercan <[email protected]>
Co-authored-by: Sertaç Özercan <[email protected]>
fixes #2582