From e259a5c42b9730761f701b62dbbc39105d6b475a Mon Sep 17 00:00:00 2001 From: Ryan Lahfa Date: Mon, 25 Dec 2023 22:07:50 +0100 Subject: [PATCH] feat(tvix/eval): context-aware `dirOf` Change-Id: If73a82a7106de9b479c950741efb70bffabd470a Reviewed-on: https://cl.tvl.fyi/c/depot/+/10424 Reviewed-by: tazjin Autosubmit: raitobezarius Tested-by: BuildkiteCI --- tvix/eval/src/builtins/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs index 6723b8d62..699dbf74c 100644 --- a/tvix/eval/src/builtins/mod.rs +++ b/tvix/eval/src/builtins/mod.rs @@ -311,7 +311,9 @@ mod pure_builtins { if is_path { Ok(Value::Path(Box::new(result.into()))) } else { - Ok(result.into()) + Ok(Value::String(NixString::new_inherit_context_from( + &str, result, + ))) } }