-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Port streaming commands in bootstrap to BootstrapCommand
and remove as_command_mut
#143354
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
base: master
Are you sure you want to change the base?
Port streaming commands in bootstrap to BootstrapCommand
and remove as_command_mut
#143354
Conversation
This comment has been minimized.
This comment has been minimized.
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.
Thanks! Left a few comments.
57f20c5
to
868ef64
Compare
This comment has been minimized.
This comment has been minimized.
|
||
/// Spawn the command in background, while capturing and returning stdout, and printing stderr. | ||
#[track_caller] | ||
pub fn stream_capture_stdout( |
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.
We only need stream_capture_stdout
right now, right? So we can remove stream_capture
. Reading both stdout and stderr in a streaming fashion while avoiding deadlocks is relatively complicated anyway, and we don't need it currently in bootstrap.
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.
Looks like the stream_capture
method is still there?
This comment has been minimized.
This comment has been minimized.
64ac851
to
03c7625
Compare
BootstrapCommand
and remove as_command_mut
ee110a1
to
216ef55
Compare
216ef55
to
c4fae7c
Compare
This comment has been minimized.
This comment has been minimized.
c4fae7c
to
536d15a
Compare
This PR adds streaming capabilities to BootstrapCommand and migrate existing command streaming scenario's used in bootstrap.
r? @Kobzol