Require a node registry to compile so the layout pass always runs

This commit is contained in:
Dennis Kobert
2026-08-15 14:49:25 +00:00
parent 87200f3c2a
commit 99ce2ea565
12 changed files with 19 additions and 18 deletions

View File

@@ -14,7 +14,7 @@ use crate::{NetworkId, NodeMetadataSource, PeerId, Position, Registry};
/// Test networks with Import inputs will fail compilation (which is expected).
fn verify_network_compiles(network: &NodeNetwork) -> Result<(), String> {
let compiler = Compiler {};
compiler.compile_single(network.clone(), None).map_err(|e| format!("Compilation failed: {:?}", e))?;
compiler.compile_single(network.clone(), &graph_craft::proto::Registry::new()).map_err(|e| format!("Compilation failed: {:?}", e))?;
Ok(())
}