Don't add -i to docker command when stdin is not a TTY#280
Merged
maxdymond merged 1 commit intoMetaswitch:mainfrom Apr 18, 2023
Merged
Don't add -i to docker command when stdin is not a TTY#280maxdymond merged 1 commit intoMetaswitch:mainfrom
maxdymond merged 1 commit intoMetaswitch:mainfrom
Conversation
Member
|
Looking at https://www.baeldung.com/linux/docker-run-interactive-tty-options it seems that because we specify |
e5cc6fc to
8c0ad03
Compare
Contributor
Author
|
@maxdymond - I fixed up the misssing 'signed-off-by' in the commit - are you happy to accept and create a new release? Thanks! |
maxdymond
approved these changes
Apr 18, 2023
Signed-off-by: olipratt <olipratt@users.noreply.github.com>
8c0ad03 to
9d66d29
Compare
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.
Why this change?
Hi!
This fixes uses of floki in script environments where stdout appears to be a TTY, but stdin is not.
Relevant testing
The most basic repro scenario of the problem is:
(I'm not actually trying to pipe anything into floki - the tool I'm using which wants to run floki just doesn't have stdin as a TTY).
Running this with the fix means the above command (and my specific scripted scenario) works correctly.
Didn't see a way to add any regression test to cover this case.
Should be perfectly safe - in any case where stdin was not a TTY, which is the only case this impacts, then floki would have failed.
Contributor notes
If you accept, could you please release a new version with this fix included, so that I can get this working for my use case?
Thanks!
Checks
cargo fmtREADME.mdupdated for this change, if necessaryCHANGELOG.mdupdated for this change