about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
authorRyan Lahfa <tvl@lahfa.xyz>2024-03-24T23·20+0100
committerraitobezarius <tvl@lahfa.xyz>2024-03-28T21·52+0000
commitb90c83972c5fa185357415a403d4697437b6ae13 (patch)
tree4c344617558f0cbebe197d2c98954702c28da670 /tvix
parent156a5a0fb6eeb231431a86f8d53f3ef50816c03d (diff)
feat(tvix/eval): non-implement `unsafeDiscardOutputDependency` r/7801
Nixpkgs make use of it and this is a 2.3 builtin that was missed.

Change-Id: If36d748eed4a5f777344556c0802392c76c8d53c
Signed-off-by: Ryan Lahfa <tvl@lahfa.xyz>
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11260
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix')
-rw-r--r--tvix/eval/src/builtins/mod.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs
index bbf2eb80c410..e1e296ba633e 100644
--- a/tvix/eval/src/builtins/mod.rs
+++ b/tvix/eval/src/builtins/mod.rs
@@ -1570,6 +1570,19 @@ mod placeholder_builtins {
         Ok(Value::from(v))
     }
 
+    #[builtin("unsafeDiscardOutputDependency")]
+    async fn builtin_unsafe_discard_output_dependency(
+        co: GenCo,
+        s: Value,
+    ) -> Result<Value, ErrorKind> {
+        generators::emit_warning_kind(
+            &co,
+            WarningKind::NotImplemented("builtins.unsafeDiscardOutputDependency"),
+        )
+        .await;
+        Ok(s)
+    }
+
     #[builtin("addErrorContext")]
     async fn builtin_add_error_context(
         co: GenCo,