We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95d232a commit 0f9af82Copy full SHA for 0f9af82
src/bootstrap/src/utils/exec.rs
@@ -203,8 +203,9 @@ impl<'a> BootstrapCommand {
203
/// Provides access to the stdlib Command inside.
204
/// FIXME: This function should be eventually removed from bootstrap.
205
pub fn as_command_mut(&mut self) -> &mut Command {
206
- // We don't know what will happen with the returned command, so we need to mark this
207
- // command as executed proactively.
+ // We proactively mark this command as executed since we can't be certain how the returned
+ // command will be handled. Caching must also be avoided here, as the inner command could be
208
+ // modified externally without us being aware.
209
self.mark_as_executed();
210
self.cache_never();
211
&mut self.command
0 commit comments