about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
authorRyan Lahfa <tvl@lahfa.xyz>2023-12-26T03·13+0100
committerclbot <clbot@tvl.fyi>2024-01-03T18·49+0000
commit9d43c265768b4577bbb1171676154ba09d75827a (patch)
treee3c6f8a007f1d684834c523fda67890bc5e59a9f /tvix/eval
parent207f6fed46406ffb48270ac809fb93599def192a (diff)
feat(tvix/eval): contextful == of derivations r/7333
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 <tazjin@tvl.su>
Autosubmit: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval')
-rw-r--r--tvix/eval/src/value/mod.rs8
1 files changed, 6 insertions, 2 deletions
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 {