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 <aaqaishtyaq@gmail.com>
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7896
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Aaqa Ishtyaq 2023-01-22 14:55:29 +05:30 committed by aaqaishtyaq
parent ed8dd4acd7
commit 59c3383b10

View file

@ -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,