{"record":{"id":"c3fe1239fb6b17d1","repo":"FuelLabs/sway","slug":"failed-to-find-package-in-c3fe12","errorCode":null,"errorMessage":"failed to find package `{}` in {}","messagePattern":"failed to find package `(.+?)` in (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"forc-pkg/src/source/reg/mod.rs","lineNumber":412,"sourceCode":"                let fetch_id = ctx.fetch_id();\n                let ipfs_node = ctx.ipfs_node().clone();\n\n                block_on_any_runtime(async move {\n                    // If the user is trying to use public IPFS node with\n                    // registry sources. Use fuel operated ipfs node\n                    // instead.\n                    let node = match ipfs_node {\n                        node if node == IPFSNode::public() => IPFSNode::fuel(),\n                        node => node,\n                    };\n                    fetch(fetch_id, &pinned, &node).await\n                })?;\n            }\n        }\n        let path = {\n            let _guard = lock.read()?;\n            manifest::find_within(path, ctx.name())\n                .ok_or_else(|| anyhow!(\"failed to find package `{}` in {}\", ctx.name(), self))?\n        };\n        PackageManifestFile::from_file(path)\n    }\n}\n\nimpl source::DepPath for Pinned {\n    fn dep_path(&self, _name: &str) -> anyhow::Result<source::DependencyPath> {\n        bail!(\"dep_path: registry dependencies are not yet supported\");\n    }\n}\n\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","sourceCodeStart":394,"sourceCodeEnd":430,"githubUrl":"https://github.com/FuelLabs/sway/blob/47e5e902faa42baf652dd6a0c88cd23390c1a614/forc-pkg/src/source/reg/mod.rs#L394-L430","documentation":"Error \"failed to find package `{}` in {}\" thrown in FuelLabs/sway.","triggerScenarios":"Thrown at forc-pkg/src/source/reg/mod.rs:412 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"}