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
+7 -1
View File
@@ -62,7 +62,13 @@ if ($os -eq 'windows') {
else { $candidates += 'coyote-aarch64-apple-darwin.tar.gz' }
} elseif ($os -eq 'linux') {
if ($arch -eq 'x86_64') {
$candidates += 'coyote-x86_64-unknown-linux-gnu.tar.gz'
# Mirror install_coyote.sh: only offer the gnu build when glibc is detected.
$libc = 'musl'
try { getconf GNU_LIBC_VERSION *> $null; if ($LASTEXITCODE -eq 0) { $libc = 'gnu' } } catch { }
try { if ((ldd --version 2>&1 | Out-String) -imatch 'glibc') { $libc = 'gnu' } } catch { }
if ($libc -eq 'gnu') {
$candidates += 'coyote-x86_64-unknown-linux-gnu.tar.gz'
}
$candidates += 'coyote-x86_64-unknown-linux-musl.tar.gz'
} else {
$candidates += 'coyote-aarch64-unknown-linux-musl.tar.gz'