From 07e0cb1b0a8d1b0ce6140284aceeea91bcd0672a Mon Sep 17 00:00:00 2001 From: Yureka Date: Fri, 27 Sep 2024 21:48:26 +0200 Subject: feat(tvix/build): add refscanning interface This provides a generic interface to let the builder search for needles in the output, as described in the notes at `docs/src/build/index.md`. Change-Id: Ic2c5bd563e9aa2e766c157f2b13cdb19aede12f8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12531 Autosubmit: yuka Tested-by: BuildkiteCI Reviewed-by: flokli Reviewed-by: Brian Olsen --- tvix/glue/src/tvix_build.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tvix/glue/src') diff --git a/tvix/glue/src/tvix_build.rs b/tvix/glue/src/tvix_build.rs index ae01351503f2..5187a76d48e5 100644 --- a/tvix/glue/src/tvix_build.rs +++ b/tvix/glue/src/tvix_build.rs @@ -100,6 +100,7 @@ pub(crate) fn derivation_to_build_request( }); let build_request = BuildRequest { + refscan_needles: vec![], // TODO refscan command_args, outputs: output_paths, @@ -276,6 +277,7 @@ mod test { additional_files: vec![], working_dir: "build".into(), scratch_paths: vec!["build".into(), "nix/store".into()], + refscan_needles: vec![], }, build_request ); @@ -345,6 +347,7 @@ mod test { additional_files: vec![], working_dir: "build".into(), scratch_paths: vec!["build".into(), "nix/store".into()], + refscan_needles: vec![], }, build_request ); @@ -431,6 +434,7 @@ mod test { ], working_dir: "build".into(), scratch_paths: vec!["build".into(), "nix/store".into()], + refscan_needles: vec![], }, build_request ); -- cgit 1.4.1