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 555a125 commit cf6a2c5Copy full SHA for cf6a2c5
src/bootstrap/src/utils/execution_context.rs
@@ -156,7 +156,8 @@ impl ExecutionContext {
156
) -> CommandOutput {
157
let cache_key = command.compute_cache_hash();
158
159
- if self.cache_cmd()
+ if command.should_cache()
160
+ && self.cache_cmd()
161
&& let Some(cached_output) = self.command_cache.get(cache_key)
162
{
163
command.mark_as_executed();
@@ -169,7 +170,7 @@ impl ExecutionContext {
169
170
171
let output = self.start(command, stdout, stderr).wait_for_output(self);
172
- if (!self.dry_run() || command.run_always) && self.cache_cmd() {
173
+ if (!self.dry_run() || command.run_always) && self.cache_cmd() && command.should_cache() {
174
self.command_cache.insert(cache_key, output.clone());
175
}
176
0 commit comments