{"record":{"id":"0d19724f8f7f03cc","repo":"astral-sh/uv","slug":"the-dependency-group-name-was-not-found-in-the","errorCode":null,"errorMessage":"The dependency group '{name}' was not found in the project: {}","messagePattern":"The dependency group '(.+?)' was not found in the project: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/uv/src/commands/pip/operations.rs","lineNumber":240,"sourceCode":"                None,\n                build_dispatch.locations(),\n                build_dispatch.sources().clone(),\n                build_dispatch.cache(),\n                build_dispatch.workspace_cache(),\n                client.credentials_cache(),\n            )\n            .await\n            .with_context(|| {\n                format!(\n                    \"Failed to read dependency groups from: {}\",\n                    pyproject_path.display()\n                )\n            })?;\n\n            // Complain if dependency groups are named that don't appear.\n            for name in groups.explicit_names() {\n                if !metadata.dependency_groups.contains_key(name) {\n                    Err(anyhow!(\n                        \"The dependency group '{name}' was not found in the project: {}\",\n                        pyproject_path.user_display()\n                    ))?;\n                }\n            }\n            // Apply dependency-groups\n            for (group_name, group) in &metadata.dependency_groups {\n                if groups.contains(group_name) {\n                    requirements.extend(group.iter().cloned().map(|group| Requirement {\n                        origin: Some(RequirementOrigin::Group(\n                            pyproject_path.clone(),\n                            metadata.name.clone(),\n                            group_name.clone(),\n                        )),\n                        ..group\n                    }));\n                }\n            }","sourceCodeStart":222,"sourceCodeEnd":258,"githubUrl":"https://github.com/astral-sh/uv/blob/f1a42680ff5272232d65748acf338b19778dde24/crates/uv/src/commands/pip/operations.rs#L222-L258","documentation":"Error \"The dependency group '{name}' was not found in the project: {}\" thrown in astral-sh/uv.","triggerScenarios":"Thrown at crates/uv/src/commands/pip/operations.rs:240 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":"f1a42680ff5272232d65748acf338b19778dde24","analyzedAt":"2026-08-16T04:51:47.599Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}