{"record":{"id":"2c907ae1a9340ed0","repo":"FuelLabs/sway","slug":"forc-migrate-does-not-support-migrating-workspac","errorCode":null,"errorMessage":"`forc migrate` does not support migrating workspaces.","messagePattern":"`forc migrate` does not support migrating workspaces\\.","errorType":"console","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"forc-plugins/forc-migrate/src/cli/shared.rs","lineNumber":80,"sourceCode":"    pub(crate) fn experimental_features(&self) -> Result<ExperimentalFeatures> {\n        let manifest = ManifestFile::from_dir(self.manifest_dir()?)?;\n        let pkg_manifest = get_pkg_manifest_file(&manifest)?;\n\n        Ok(ExperimentalFeatures::new(\n            &pkg_manifest.project.experimental,\n            &self.experimental.experimental,\n            &self.experimental.no_experimental,\n        )\n        .map_err(|err| anyhow::anyhow!(\"{err}\"))?)\n    }\n}\n\n// Clippy issue. It erroneously assumes that `vec!`s in `instructive_error` calls are not needed.\n#[allow(clippy::useless_vec)]\nfn get_pkg_manifest_file(manifest: &ManifestFile) -> Result<&PackageManifestFile> {\n    match manifest {\n        ManifestFile::Package(pkg_manifest) => Ok(pkg_manifest),\n        ManifestFile::Workspace(_) => Err(anyhow::anyhow!(instructive_error(\n            \"`forc migrate` does not support migrating workspaces.\",\n            &vec![\n                &format!(\"\\\"{}\\\" is a workspace.\", manifest.dir().to_string_lossy()),\n                \"Please migrate each workspace member individually.\",\n            ]\n        ))),\n    }\n}\n\n// Clippy issue. It erroneously assumes that `vec!`s in `instructive_error` calls are not needed.\n#[allow(clippy::useless_vec)]\npub(crate) fn compile_package<'a>(\n    engines: &'a Engines,\n    build_instructions: &Compile,\n) -> Result<ProgramInfo<'a>> {\n    let manifest_dir = build_instructions.manifest_dir()?;\n    let manifest = ManifestFile::from_dir(manifest_dir.clone())?;\n    let pkg_manifest = get_pkg_manifest_file(&manifest)?;","sourceCodeStart":62,"sourceCodeEnd":98,"githubUrl":"https://github.com/FuelLabs/sway/blob/47e5e902faa42baf652dd6a0c88cd23390c1a614/forc-plugins/forc-migrate/src/cli/shared.rs#L62-L98","documentation":"Error \"`forc migrate` does not support migrating workspaces.\" thrown in FuelLabs/sway.","triggerScenarios":"Thrown at forc-plugins/forc-migrate/src/cli/shared.rs:80 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"}