diff options
Diffstat (limited to 'src/pipeline')
| -rw-r--r-- | src/pipeline/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pipeline/mod.rs b/src/pipeline/mod.rs index 9a53d80..350df0c 100644 --- a/src/pipeline/mod.rs +++ b/src/pipeline/mod.rs @@ -180,6 +180,10 @@ impl Ctx { /// point. `remote` binds the agent listener for the lifetime of this /// run's context. fn backend_for(cfg: &Config) -> Result<Arc<dyn SandboxBackend>> { + // The startup guard in the CLI catches this first; repeating it here is + // what makes "the config was never validated" impossible for anything + // that constructs a backend — a test, a future daemon, a tool. + cfg.validate()?; match &cfg.sandbox { crate::config::Sandbox::Loopback => { Ok(Arc::new(crate::sandbox::loopback::LoopbackBackend::new(cfg))) |
