about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
authorRyan Lahfa <tvl@lahfa.xyz>2024-01-14T00·42+0100
committerraitobezarius <tvl@lahfa.xyz>2024-01-17T07·57+0000
commit97e6c39dcd6f3fbcf8f3afedcc6a9db8473ad012 (patch)
tree6461524d617eec85099f839ec01ed05b22a40a5a /tvix/eval
parentc2d0e245e23c33aed93f43af0f0c9549718376d9 (diff)
fix(tvix/eval): context-aware `dirOf` r/7400
`dirOf` forgot to accepts contextful strings, e.g. derivations and propagates this context
further.

Change-Id: I6c05944a3ce5073e243e7676c9be56c48407d657
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10618
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval')
-rw-r--r--tvix/eval/src/builtins/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs
index 74fc65d36780..03e485cb56dc 100644
--- a/tvix/eval/src/builtins/mod.rs
+++ b/tvix/eval/src/builtins/mod.rs
@@ -375,7 +375,7 @@ mod pure_builtins {
                 span,
             )
             .await?
-            .to_str()?;
+            .to_contextful_str()?;
         let result = str
             .rsplit_once('/')
             .map(|(x, _)| match x {