{"record":{"id":"1391c2111d718654","repo":"FuelLabs/sway","slug":"no-found-for","errorCode":null,"errorMessage":"No {} found for {}","messagePattern":"No (.+?) found for (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"forc-pkg/src/source/reg/mod.rs","lineNumber":356,"sourceCode":"        .join(repo_dir_name)\n}\n\nimpl source::Pin for Source {\n    type Pinned = Pinned;\n    fn pin(&self, ctx: source::PinCtx) -> anyhow::Result<(Self::Pinned, PathBuf)> {\n        let pkg_name = ctx.name.to_string();\n        let fetch_id = ctx.fetch_id();\n        let source = self.clone();\n        let pkg_name = pkg_name.clone();\n\n        let cid = block_on_any_runtime(async move {\n            with_tmp_fetch_index(fetch_id, &pkg_name, &source, |index_file| {\n                let version = source.version.clone();\n                let pkg_name = pkg_name.clone();\n                async move {\n                    let pkg_entry = index_file\n                        .get(&version)\n                        .ok_or_else(|| anyhow!(\"No {} found for {}\", version, pkg_name))?;\n                    Cid::from_str(pkg_entry.source_cid()).map_err(anyhow::Error::from)\n                }\n            })\n            .await\n        })?;\n\n        let path = registry_package_dir(&self.namespace, ctx.name, &self.version);\n        let pinned = Pinned {\n            source: self.clone(),\n            cid,\n        };\n        Ok((pinned, path))\n    }\n}\n\nimpl source::Fetch for Pinned {\n    fn fetch(&self, ctx: source::PinCtx, path: &Path) -> anyhow::Result<PackageManifestFile> {\n        // Co-ordinate access to the registry checkout directory using an advisory file lock.","sourceCodeStart":338,"sourceCodeEnd":374,"githubUrl":"https://github.com/FuelLabs/sway/blob/47e5e902faa42baf652dd6a0c88cd23390c1a614/forc-pkg/src/source/reg/mod.rs#L338-L374","documentation":"Error \"No {} found for {}\" thrown in FuelLabs/sway.","triggerScenarios":"Thrown at forc-pkg/src/source/reg/mod.rs:356 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"}