From 6a664259319ea9b3ebce7f954deedeb86c0180f2 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 31 Oct 2026 06:27:50 +0100 Subject: [PATCH] source-search: compile fixes (startup bound, mirror init, test literal) Co-Authored-By: Claude Sonnet 5.5 --- crates/huginn-daemon/src/index/tests.rs | 2 ++ crates/huginn-daemon/src/serve.rs | 2 +- crates/huginn-daemon/src/sources/git.rs | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/huginn-daemon/src/index/tests.rs b/crates/huginn-daemon/src/index/tests.rs index b70fdc9..c4fb3f6 100644 --- a/crates/huginn-daemon/src/index/tests.rs +++ b/crates/huginn-daemon/src/index/tests.rs @@ -1143,6 +1143,8 @@ fn shared_with( closed, searches: searches.into(), found: Vec::new(), + source_searches: VecDeque::new(), + sources_found: Vec::new(), next_ticket: 0, }), Condvar::new(), diff --git a/crates/huginn-daemon/src/serve.rs b/crates/huginn-daemon/src/serve.rs index cc8e6ed..72db18c 100644 --- a/crates/huginn-daemon/src/serve.rs +++ b/crates/huginn-daemon/src/serve.rs @@ -167,7 +167,7 @@ pub fn startup( ) -> Result<(Daemon, CultNetRudpServerHub, CultNetSchemaRegistry)> where E: Embedder + Send + 'static, - V: VectorIndex + Send + 'static, + V: VectorIndex + crate::sources::SourceIndex + Send + 'static, { let mind = Mind::open(&options.state_root, &options.instance)?; let hub = bind(options.bind, &runtime_id(&options.instance))?; diff --git a/crates/huginn-daemon/src/sources/git.rs b/crates/huginn-daemon/src/sources/git.rs index ee02b92..af41e21 100644 --- a/crates/huginn-daemon/src/sources/git.rs +++ b/crates/huginn-daemon/src/sources/git.rs @@ -87,7 +87,9 @@ impl Mirror { pub fn fetch(&self, remote: &str) -> Result { if !self.dir.join("HEAD").exists() { std::fs::create_dir_all(&self.dir).with_context(|| format!("creating {}", self.dir.display()))?; - run(Command::new("git").arg("init").arg("--bare").arg("--quiet").arg(&self.dir), "initialise a mirror")?; + let mut init = Command::new("git"); + init.arg("init").arg("--bare").arg("--quiet").arg(&self.dir); + run(init, "initialise a mirror")?; } let refspec = format!("+refs/heads/{0}:refs/heads/{0}", self.branch); run(git(&self.dir, &["fetch", "--quiet", "--no-tags", remote, &refspec]), "fetch the default branch")?;