From 9d43c265768b4577bbb1171676154ba09d75827a Mon Sep 17 00:00:00 2001 From: Ryan Lahfa Date: Tue, 26 Dec 2023 04:13:58 +0100 Subject: feat(tvix/eval): contextful == of derivations Otherwise, you just fail because they are not... contextless strings! Change-Id: I0b8f63a18cd89c3841b613d41c12ec4ee336f953 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10442 Reviewed-by: tazjin Autosubmit: raitobezarius Tested-by: BuildkiteCI --- tvix/eval/src/value/mod.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tvix') diff --git a/tvix/eval/src/value/mod.rs b/tvix/eval/src/value/mod.rs index b688716d4131..aa32f558aa69 100644 --- a/tvix/eval/src/value/mod.rs +++ b/tvix/eval/src/value/mod.rs @@ -588,8 +588,12 @@ impl Value { .clone() .force(co, span.clone()) .await? - .to_str()? - == out2.clone().force(co, span.clone()).await?.to_str()?; + .to_contextful_str()? + == out2 + .clone() + .force(co, span.clone()) + .await? + .to_contextful_str()?; if !result { return Ok(Value::Bool(false)); } else { -- cgit 1.4.1