about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
authorRyan Lahfa <tvl@lahfa.xyz>2024-04-13T12·59+0200
committerraitobezarius <tvl@lahfa.xyz>2024-04-13T13·16+0000
commita919efbe117242ef3386efd6ef3282571792fb30 (patch)
tree300947ef9ebb198bf2bfa785d627825e4cd9b0f9 /tvix/eval
parent01f8ef15604642505e9618e66184e9d83be1f6b6 (diff)
fix(tvix/eval): fix the `unsafeGetAttrPos` stub return value r/7909
It was returning `{ line, col, file }` instead of `{ line, column, file
}`.

Note this is not a regression in Nix, Nix always had `column` since
2013.

Change-Id: I4871a201b32324dff0432526d0449806a535828f
Signed-off-by: Ryan Lahfa <tvl@lahfa.xyz>
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11409
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 3d24e495efa3..04a0b3dd33ea 100644
--- a/tvix/eval/src/builtins/mod.rs
+++ b/tvix/eval/src/builtins/mod.rs
@@ -1716,7 +1716,7 @@ mod placeholder_builtins {
         .await;
         let res = [
             ("line", 42.into()),
-            ("col", 42.into()),
+            ("column", 42.into()),
             ("file", Value::String("/deep/thought".into())),
         ];
         Ok(Value::attrs(NixAttrs::from_iter(res.into_iter())))