From 083e24bbb1a216b43bfa4fa2e509a1ee6a88ad46 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 16 Jan 2023 15:55:16 +0100 Subject: feat(tvix/derivation): add validate_output_paths flag for validate This allows calling validate() on a derivation that doesn't have its output paths already calculated yet. It allows offloading some of the error checking in builtins.derivation* to be offloaded to that function. Change-Id: Ib4aeadc0eb6583ef8cd765f33e9a9ec32be62729 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7848 Reviewed-by: tazjin Autosubmit: flokli Tested-by: BuildkiteCI --- tvix/derivation/src/tests/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/derivation/src/tests/mod.rs') diff --git a/tvix/derivation/src/tests/mod.rs b/tvix/derivation/src/tests/mod.rs index bd5d9f34cb12..5dd60284f05c 100644 --- a/tvix/derivation/src/tests/mod.rs +++ b/tvix/derivation/src/tests/mod.rs @@ -39,7 +39,7 @@ fn validate(path_to_drv_file: &str) { let derivation: Derivation = serde_json::from_str(&data).expect("JSON was not well-formatted"); derivation - .validate() + .validate(true) .expect("derivation failed to validate") } -- cgit 1.4.1