{"record":{"id":"e34f55509eec8ac5","repo":"FuelLabs/sway","slug":"version-not-found-for-other-available-versi","errorCode":null,"errorMessage":"Version {} not found for {}. Other available versions: [{}]","messagePattern":"Version (.+?) not found for (.+?)\\. Other available versions: \\[(.+?)\\]","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"forc-pkg/src/source/reg/mod.rs","lineNumber":441,"sourceCode":"\nimpl From<Pinned> for source::Pinned {\n    fn from(p: Pinned) -> Self {\n        Self::Registry(p)\n    }\n}\n\n/// Resolve a CID from index file and pinned package. Basically goes through\n/// the index file to find corresponding entry described by the pinned instance.\nfn resolve_to_cid(index_file: &IndexFile, pinned: &Pinned) -> anyhow::Result<Cid> {\n    let other_versions = index_file\n        .versions()\n        .filter(|ver| **ver != pinned.source.version)\n        .map(|ver| format!(\"{}.{}.{}\", ver.major, ver.minor, ver.patch))\n        .collect::<Vec<_>>()\n        .join(\",\");\n\n    let package_entry = index_file.get(&pinned.source.version).ok_or_else(|| {\n        anyhow!(\n            \"Version {} not found for {}. Other available versions: [{}]\",\n            pinned.source.version,\n            pinned.source.name,\n            other_versions\n        )\n    })?;\n\n    let cid = Cid::from_str(package_entry.source_cid()).with_context(|| {\n        format!(\n            \"Invalid CID {}v{}: `{}`\",\n            package_entry.name(),\n            package_entry.version(),\n            package_entry.source_cid()\n        )\n    })?;\n    if package_entry.yanked() {\n        bail!(\n            \"Version {} of {} is yanked. Other available versions: [{}]\",","sourceCodeStart":423,"sourceCodeEnd":459,"githubUrl":"https://github.com/FuelLabs/sway/blob/47e5e902faa42baf652dd6a0c88cd23390c1a614/forc-pkg/src/source/reg/mod.rs#L423-L459","documentation":"Error \"Version {} not found for {}. Other available versions: [{}]\" thrown in FuelLabs/sway.","triggerScenarios":"Thrown at forc-pkg/src/source/reg/mod.rs:441 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"47e5e902faa42baf652dd6a0c88cd23390c1a614","analyzedAt":"2026-08-16T07:57:45.555Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}