diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-30 13:13:45 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-30 14:25:12 +0200 |
commit | 0440d1a4b8953f9cb8a39d5c6f4f549157db41e8 (patch) | |
tree | b4af4974fe9dc3fdd703b7add706b0edee799ae4 /crates/driver/src/driver.rs | |
parent | cbf29a18ce56a929452c832f10c3ca3cc143a73c (diff) | |
download | rebel-0440d1a4b8953f9cb8a39d5c6f4f549157db41e8.tar rebel-0440d1a4b8953f9cb8a39d5c6f4f549157db41e8.zip |
Make TaskOutput input hash optional
The input hash is used for the summary output only. For empty tasks, we
want to skip submitting the task to the runner at all, so there is no
input hash.
Diffstat (limited to 'crates/driver/src/driver.rs')
-rw-r--r-- | crates/driver/src/driver.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/driver/src/driver.rs b/crates/driver/src/driver.rs index d7106c3..375c567 100644 --- a/crates/driver/src/driver.rs +++ b/crates/driver/src/driver.rs @@ -121,7 +121,9 @@ impl<'ctx> CompletionState<'ctx> { for (task_ref, task) in tasks.iter() { println!(); println!("{:#}", task_ref); - println!(" input: {}", task.input_hash); + if let Some(hash) = task.input_hash { + println!(" input: {}", hash); + } if let Some(hash) = task.layer { println!(" layer: {}", hash); } |