DioxusLabs/dioxus · error · anyhow::Error
Unsupported OS
Error message
Unsupported OS
What it means
Platform guard in self_update: a compile-time cfg! cascade over target_os recognized none of windows, linux, or macos, so the current operating system has no corresponding dx release artifact to download. The input at fault is the host OS, for which the updater cannot construct a release download.
Source
Thrown at packages/cli/src/cli/update.rs:106
tracing::info!("- Yours: {}", cargo_crate_version!());
tracing::info!("- Latest: {}", latest.version);
let cur_arch = if cfg!(target_arch = "x86_64") {
"x86_64"
} else if cfg!(target_arch = "aarch64") {
"aarch64"
} else {
bail!("Unsupported architecture");
};
let cur_os = if cfg!(target_os = "windows") {
"windows"
} else if cfg!(target_os = "linux") {
"linux"
} else if cfg!(target_os = "macos") {
"darwin"
} else {
bail!("Unsupported OS");
};
let zip_ext = "zip";
tracing::debug!("Available assets: {:?}", latest.assets);
let asset = latest
.assets
.iter()
.find(|a| {
a.name.contains(cur_os)
&& a.name.contains(cur_arch)
&& a.name.ends_with(zip_ext)
})
.context("No suitable asset found")?;
let install_dir = Workspace::dioxus_data_dir().join("self-update");
std::fs::create_dir_all(&install_dir).context("Failed to create install directory")?;View on GitHub (pinned to 24f6a829df)
Solutions
- dx self-update does not support this OS. Install dx manually for this platform.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at packages/cli/src/cli/update.rs:106 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of DioxusLabs/dioxus@24f6a829df (2026-08-23).
Data as JSON: /api/errors/068ab8ea7158a692.
Report an issue: GitHub.