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 a49c980 commit 0a672a9Copy full SHA for 0a672a9
src/bootstrap/src/utils/execution_context.rs
@@ -29,6 +29,17 @@ pub struct CommandCache {
29
cache: Mutex<HashMap<CommandCacheKey, CommandOutput>>,
30
}
31
32
+enum CommandState<'a> {
33
+ Cached(CommandOutput),
34
+ Deferred {
35
+ process: Option<Result<Child, std::io::Error>>,
36
+ command: &'a mut BootstrapCommand,
37
+ stdout: OutputMode,
38
+ stderr: OutputMode,
39
+ executed_at: &'a Location<'a>,
40
+ },
41
+}
42
+
43
impl CommandCache {
44
pub fn new() -> Self {
45
Self { cache: Mutex::new(HashMap::new()) }
0 commit comments