diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-11 18:15:10 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-11 18:29:21 +0200 |
commit | 74bdffde11fa3b4def04808eb823eb8c0560d5d5 (patch) | |
tree | 40983330eb7c019c0489eda344112736d4af8842 /src/executor.rs | |
parent | efed68a9853272a7b75b413cf3adf19a4b1b6b1a (diff) | |
download | rebel-74bdffde11fa3b4def04808eb823eb8c0560d5d5.tar rebel-74bdffde11fa3b4def04808eb823eb8c0560d5d5.zip |
runner: make layer hash output optional
There is no need to store a layer hash when the task has not touched any
files.
Diffstat (limited to 'src/executor.rs')
-rw-r--r-- | src/executor.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/executor.rs b/src/executor.rs index 6cac288..ec39d73 100644 --- a/src/executor.rs +++ b/src/executor.rs @@ -259,11 +259,12 @@ impl<'ctx> Executor<'ctx> { .expect("invalid inherit depends") .map(|inherit_dep| { let inherit_meta = &self.tasks_done[&inherit_dep]; - [ - inherit_meta.inherit.as_slice(), - &[inherit_meta.output.layer], - ] - .concat() + inherit_meta + .inherit + .iter() + .chain(inherit_meta.output.layer.iter()) + .copied() + .collect() }) .unwrap_or_default(); |