From 501827db59eb9e67ef9c637483efa5a0e5d09c06 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 16 Jan 2024 13:14:07 +0200 Subject: refactor(tvix/glue): add BuildService to TvixStoreIO TvixStoreIO triggers builds whenever IO into a not-yet-built store path is requested, if it knows how to build that path. Change-Id: If30e9db6be2f2a30cbc9d0576f357f3ecfa0d35a Reviewed-on: https://cl.tvl.fyi/c/depot/+/10645 Reviewed-by: raitobezarius Tested-by: BuildkiteCI --- tvix/cli/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tvix/cli/src') diff --git a/tvix/cli/src/main.rs b/tvix/cli/src/main.rs index 1e54d094b517..7683ad4c59f8 100644 --- a/tvix/cli/src/main.rs +++ b/tvix/cli/src/main.rs @@ -1,7 +1,9 @@ use clap::Parser; use rustyline::{error::ReadlineError, Editor}; use std::rc::Rc; +use std::sync::Arc; use std::{fs, path::PathBuf}; +use tvix_build::buildservice::DummyBuildService; use tvix_eval::builtins::impure_builtins; use tvix_eval::observer::{DisassemblingObserver, TracingObserver}; use tvix_eval::{EvalIO, Value}; @@ -88,6 +90,7 @@ fn interpret(code: &str, path: Option, args: &Args, explain: bool) -> b blob_service.clone(), directory_service.clone(), path_info_service.into(), + Arc::::default(), tokio_runtime.handle().clone(), )); -- cgit 1.4.1