fix: Prefer GNU linux builds in install scripts for duckdb support, and gate duckdb support on linux hosts that are MUSL until MUSL support is added

This commit is contained in:
2026-08-28 20:06:39 -06:00
parent 50d2a74e80
commit 18c2cfeb41
4 changed files with 56 additions and 2 deletions
+6
View File
@@ -1869,6 +1869,12 @@ fn select_embedding_model(models: &[&Model]) -> Result<String> {
}
pub(crate) fn select_rag_driver() -> Result<String> {
// Statically linked musl builds cannot dlopen DuckDB extensions, so duckdb is not offered there.
#[cfg(target_env = "musl")]
let options = vec![
"yaml — portable, in-memory HNSW; usable from several Coyote processes at once (default)",
];
#[cfg(not(target_env = "musl"))]
let options = vec![
"yaml — portable, in-memory HNSW; usable from several Coyote processes at once (default)",
"duckdb — persistent on-disk store; vectors and content survive restarts; HNSW approximate search.",