From 212f5afdcf28ce53006eebcc623a0256ff4aa33c Mon Sep 17 00:00:00 2001 From: sterni Date: Fri, 15 Mar 2024 21:52:40 +0100 Subject: fix(tvix/eval): builtins.unsafeGetAttrPos returns path as a string Change-Id: Ia1058a5ea687f413fbb62365da199032bdbd3fd2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11155 Reviewed-by: tazjin Reviewed-by: flokli Tested-by: BuildkiteCI Autosubmit: sterni --- tvix/eval/src/builtins/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix') diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs index 0e0890f7cd28..a2136ee6ad05 100644 --- a/tvix/eval/src/builtins/mod.rs +++ b/tvix/eval/src/builtins/mod.rs @@ -1583,7 +1583,7 @@ mod placeholder_builtins { let res = [ ("line", 42.into()), ("col", 42.into()), - ("file", Value::Path(Box::new("/deep/thought".into()))), + ("file", Value::String("/deep/thought".into())), ]; Ok(Value::attrs(NixAttrs::from_iter(res.into_iter()))) } -- cgit 1.4.1