From ba138712e4c4a067e438a62ad20d54091f5f4446 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 18 Mar 2023 00:10:29 +0300 Subject: feat(tvix/eval): add Evaluation::strict to toggle top-level deepseq This makes it possible for callers to control whether they can receive partially evaluated values from an evaluation or not. We're actually flipping the default behaviour to non-strict top-level evaluation, which means that callers have to set `strict = true` on the Evaluation to get the previous behaviour. Change-Id: Ic048e9ba09c88866d4c3177d5fa07db11c4eb20e Reviewed-on: https://cl.tvl.fyi/c/depot/+/8325 Autosubmit: tazjin Tested-by: BuildkiteCI Reviewed-by: sterni --- tvix/eval/tests/nix_oracle.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'tvix/eval/tests') diff --git a/tvix/eval/tests/nix_oracle.rs b/tvix/eval/tests/nix_oracle.rs index e241a26f8ffd..b3ef08f87252 100644 --- a/tvix/eval/tests/nix_oracle.rs +++ b/tvix/eval/tests/nix_oracle.rs @@ -41,6 +41,7 @@ fn nix_eval(expr: &str) -> String { fn compare_eval(expr: &str) { let nix_result = nix_eval(expr); let mut eval = tvix_eval::Evaluation::new(expr, None); + eval.strict = true; eval.io_handle = Box::new(tvix_eval::StdIO); let tvix_result = eval -- cgit 1.4.1