From 97e6c39dcd6f3fbcf8f3afedcc6a9db8473ad012 Mon Sep 17 00:00:00 2001 From: Ryan Lahfa Date: Sun, 14 Jan 2024 01:42:53 +0100 Subject: fix(tvix/eval): context-aware `dirOf` `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 Tested-by: BuildkiteCI --- tvix/eval/src/builtins/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/eval') 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 { -- cgit 1.4.1