From 59c3383b10dc9fb356102164eddf40294c09dae6 Mon Sep 17 00:00:00 2001 From: Aaqa Ishtyaq Date: Sun, 22 Jan 2023 14:55:29 +0530 Subject: fix(corp/tvixbolt): set output to eval value. This CL fixes the bug where output of a nix evaluation is not set. Change-Id: I8ae2759a7ec26e1de2e57dd43302129347a8c302 Signed-off-by: Aaqa Ishtyaq Reviewed-on: https://cl.tvl.fyi/c/depot/+/7896 Tested-by: BuildkiteCI Reviewed-by: tazjin --- corp/tvixbolt/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'corp') diff --git a/corp/tvixbolt/src/main.rs b/corp/tvixbolt/src/main.rs index 6cd2bebbce..912741847b 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, -- cgit 1.4.1