about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAaqa Ishtyaq <aaqaishtyaq@gmail.com>2023-01-22T09·25+0530
committeraaqaishtyaq <aaqaishtyaq@gmail.com>2023-01-22T16·35+0000
commit59c3383b10dc9fb356102164eddf40294c09dae6 (patch)
tree19f455827beef8cb6fcdd7b7af2042376d322226
parented8dd4acd71161893a06dd25567852b1855ac1ab (diff)
fix(corp/tvixbolt): set output to eval value. r/5733
This CL fixes the bug where output of a nix
evaluation is not set.

Change-Id: I8ae2759a7ec26e1de2e57dd43302129347a8c302
Signed-off-by: Aaqa Ishtyaq <aaqaishtyaq@gmail.com>
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7896
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
-rw-r--r--corp/tvixbolt/src/main.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/corp/tvixbolt/src/main.rs b/corp/tvixbolt/src/main.rs
index 6cd2bebbce27..912741847bce 100644
--- a/corp/tvixbolt/src/main.rs
+++ b/corp/tvixbolt/src/main.rs
@@ -296,6 +296,11 @@ fn eval(model: &Model) -> Output {
         }
     }
 
+    out.output = match result.value {
+        Some(val) => val.to_string(),
+        None => "".to_string(),
+    };
+
     for warning in result.warnings {
         writeln!(
             &mut out.warnings,