jdx/mise · error
macOS release targets cannot declare a libc family
Error message
macOS release targets cannot declare a libc family
What it means
mise release assets encode libc only for Linux (glibc/musl); macOS artifacts have no libc suffix. If a RemotePlatform targets macOS but carries a libc flavor, the platform description is internally inconsistent (there is no such release asset), so release_asset_name rejects it.
Solutions
- Remove the libc component from the macOS platform spec (use macos/x64 or macos/arm64)
- Fix the platform parsing/config so libc is only set for linux targets
- If a tool auto-detects libc on macOS, ensure it maps darwin to libc=None
Example fix
// before
RemotePlatform { os: "macos", arch: "arm64", libc: Some(LibcFlavor::Musl) }
// after
RemotePlatform { os: "macos", arch: "arm64", libc: None } Defensive patterns
Strategy: type-guard
Validate before calling
if platform.os == "macos" { assert(platform.libc.is_none(), "macOS targets must not set libc") } Type guard
fn platform_is_valid(os: &str, libc: Option<LibcFlavor>) -> bool { os != "macos" || libc.is_none() } Try / catch
match res { Err(e) if e.message.contains("libc family") => sanitize_platform_spec(), other => other? } Prevention
- Only attach libc flavor to linux platform specs
- Validate platform strings (os/arch[/libc]) before storing them in config
- Fix generators that unconditionally emit a libc component
When it happens
Trigger: Constructing or parsing a RemotePlatform with os="macos" and libc=Some(...) — e.g. platform string "macos/arm64/glibc" misconfigured in remote settings, or a platform parser misclassifying a target.
Common situations: Copy-pasting a linux platform spec (linux/x64/musl) and changing only the OS to macos; a config generator that always emits a libc component; misparsing remote uname output on a macOS host.
Understand the failure class
Background: Conflicting config options: "cannot be used together" — configuration validation errors across open-source libraries — this error's family across 162 libraries.
Related errors
- another process is installing the mise notification helper
- app target is outside an allowed Applications directory
- [bootstrap.macos.dock].apps: expected a path relative to…
- [bootstrap.macos.dock].apps: expected an absolute or ~/…
- [bootstrap.macos.dock].apps: expected an array of…
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/529600796d4a0092.
Report an issue: GitHub.
Appendix: source
Thrown at src/system/remote.rs:1613
format!("{RELEASE_BASE_URL}/v{version}/{filename}")
}
fn release_asset_name(os: &str, arch: &str, libc: Option<LibcFlavor>) -> Result<String> {
let release_arch = match arch {
"x86_64" => "x64",
"aarch64" => "arm64",
"armv7" => "armv7",
_ => {
bail!(
"mise {} has no official precompiled artifact for {os}/{arch}; set mise_bin, remote_mise, or bootstrap_command",
env!("CARGO_PKG_VERSION")
)
}
};
let suffix = match os {
"macos" if matches!(arch, "x86_64" | "aarch64") => {
if libc.is_some() {
bail!("macOS release targets cannot declare a libc family");
}
format!("macos-{release_arch}")
}
"linux" if matches!(arch, "x86_64" | "aarch64" | "armv7") => match libc {
Some(LibcFlavor::Glibc) => format!("linux-{release_arch}"),
Some(LibcFlavor::Musl) => format!("linux-{release_arch}-musl"),
None => bail!("Linux release targets require a detected libc family"),
},
_ => {
bail!(
"mise {} has no official precompiled artifact for {os}/{arch}; set mise_bin, remote_mise, or bootstrap_command",
env!("CARGO_PKG_VERSION")
)
}
};
Ok(format!("mise-v{}-{suffix}", env!("CARGO_PKG_VERSION")))
}
View on GitHub (pinned to 533346cc37)