about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2024-03-15T20·52+0100
committerclbot <clbot@tvl.fyi>2024-03-16T12·52+0000
commit212f5afdcf28ce53006eebcc623a0256ff4aa33c (patch)
tree2de5a3de423e9ef3ff975007b6bd32d1571ac824 /tvix/eval
parent0e0f69881cf14c68785b3020712f78edefac7c26 (diff)
fix(tvix/eval): builtins.unsafeGetAttrPos returns path as a string r/7704
Change-Id: Ia1058a5ea687f413fbb62365da199032bdbd3fd2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11155
Reviewed-by: tazjin <tazjin@tvl.su>
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Autosubmit: sterni <sternenseemann@systemli.org>
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 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())))
     }