source-search: compile fixes (startup bound, mirror init, test literal)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-31 06:27:50 +01:00
commit 6a66425931
3 changed files with 6 additions and 2 deletions

View file

@ -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(),

View file

@ -167,7 +167,7 @@ pub fn startup<E, V>(
) -> Result<(Daemon<OwnedRedbMessagePackBackingStore, WorkerSink>, 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))?;

View file

@ -87,7 +87,9 @@ impl Mirror {
pub fn fetch(&self, remote: &str) -> Result<String> {
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")?;