diff options
author | Yureka <tvl@yuka.dev> | 2024-09-27T19·48+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-10-01T13·40+0000 |
commit | 07e0cb1b0a8d1b0ce6140284aceeea91bcd0672a (patch) | |
tree | 79fada13b13c96c317955b221170aa2c11948fa2 /tvix/glue/src | |
parent | b82cacb449c71684aab533cb1f27ddfd48bf78da (diff) |
feat(tvix/build): add refscanning interface r/8742
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 <yuka@yuka.dev> Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de> Reviewed-by: Brian Olsen <me@griff.name>
Diffstat (limited to 'tvix/glue/src')
-rw-r--r-- | tvix/glue/src/tvix_build.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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 ); |