{"record":{"id":"9e1f0dc58be5930d","repo":"Kuberwastaken/claurst","slug":"unsupported-architecture-for-upgrade","errorCode":null,"errorMessage":"Unsupported architecture for upgrade","messagePattern":"Unsupported architecture for upgrade","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src-rust/crates/cli/src/upgrade.rs","lineNumber":164,"sourceCode":"// ---------------------------------------------------------------------------\n\nfn detect_target() -> Result<String> {\n    let os = if cfg!(target_os = \"linux\") {\n        \"linux\"\n    } else if cfg!(target_os = \"macos\") {\n        \"macos\"\n    } else if cfg!(target_os = \"windows\") {\n        \"windows\"\n    } else {\n        bail!(\"Unsupported OS for upgrade\");\n    };\n\n    let arch = if cfg!(target_arch = \"x86_64\") {\n        \"x86_64\"\n    } else if cfg!(target_arch = \"aarch64\") {\n        \"aarch64\"\n    } else {\n        bail!(\"Unsupported architecture for upgrade\");\n    };\n\n    Ok(format!(\"{}-{}\", os, arch))\n}\n\nfn archive_name_for_target(target: &str) -> (String, bool) {\n    if target.starts_with(\"windows\") {\n        (format!(\"{}-{}.zip\", APP, target), true)\n    } else {\n        (format!(\"{}-{}.tar.gz\", APP, target), false)\n    }\n}\n\n// ---------------------------------------------------------------------------\n// GitHub API: latest version\n// ---------------------------------------------------------------------------\n\nasync fn fetch_latest_version() -> Result<String> {","sourceCodeStart":146,"sourceCodeEnd":182,"githubUrl":"https://github.com/Kuberwastaken/claurst/blob/b0637c97ec34144387cbf2f74f65df6d16a6cef1/src-rust/crates/cli/src/upgrade.rs#L146-L182","documentation":"Target-detection guard in the upgrade path: cfg!(target_arch) matched neither x86_64 nor aarch64 (e.g. riscv64, i686), so no release asset exists for this CPU architecture. Self-upgrade cannot map the current build to a downloadable artifact.","triggerScenarios":"Thrown at src-rust/crates/cli/src/upgrade.rs:164 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install a build for a supported architecture (x86_64 or aarch64) from the releases page","If on exotic hardware, build from source with cargo build --release"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b0637c97ec34144387cbf2f74f65df6d16a6cef1","analyzedAt":"2026-09-10T00:24:58.650Z","contentChangedAt":"2026-09-10T00:24:58.650Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}