{"record":{"id":"a0ad8a1fa2ee76a6","repo":"Kuberwastaken/claurst","slug":"unsupported-os-for-upgrade","errorCode":null,"errorMessage":"Unsupported OS for upgrade","messagePattern":"Unsupported OS for upgrade","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src-rust/crates/cli/src/upgrade.rs","lineNumber":156,"sourceCode":"           -h, --help          Show this help\\n\\n\\\n         Downloads the latest claurst release from GitHub and replaces this\\n\\\n         binary in place. Your settings and sessions are preserved.\"\n    );\n}\n\n// ---------------------------------------------------------------------------\n// Target detection\n// ---------------------------------------------------------------------------\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)","sourceCodeStart":138,"sourceCodeEnd":174,"githubUrl":"https://github.com/Kuberwastaken/claurst/blob/b0637c97ec34144387cbf2f74f65df6d16a6cef1/src-rust/crates/cli/src/upgrade.rs#L138-L174","documentation":"Target-detection guard in the upgrade path: the binary was built for an OS other than linux, macOS, or windows (cfg!(target_os) matched none), so no release asset naming scheme exists for it. The platform itself is unsupported by self-upgrade, not a runtime failure.","triggerScenarios":"Thrown at src-rust/crates/cli/src/upgrade.rs:156 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Upgrade manually: download the release for your platform from the GitHub releases page","Reinstall via the original installation method (npm, cargo install, package manager)"],"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"}