{"record":{"id":"46ba112e88d3cde5","repo":"astral-sh/uv","slug":"pylock-toml-is-not-a-supported-input-format-for","errorCode":null,"errorMessage":"`pylock.toml` is not a supported input format for `uv pip compile`","messagePattern":"`pylock\\.toml` is not a supported input format for `uv pip compile`","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/uv/src/commands/pip/compile.rs","lineNumber":234,"sourceCode":"        require_hashes: _,\n        find_links,\n        no_binary,\n        no_build,\n    } = RequirementsSpecification::from_sources(\n        requirements,\n        constraints,\n        overrides,\n        excludes,\n        Some(&groups),\n        &client_builder,\n    )\n    .await?;\n\n    override_dependencies.extend(overrides_from_workspace);\n\n    // Reject `pylock.toml` files, which are valid outputs but not inputs.\n    if pylock.is_some() {\n        return Err(anyhow!(\n            \"`pylock.toml` is not a supported input format for `uv pip compile`\"\n        ));\n    }\n\n    let constraints = constraints\n        .iter()\n        .cloned()\n        .chain(\n            constraints_from_workspace\n                .into_iter()\n                .map(NameRequirementSpecification::from),\n        )\n        .collect();\n\n    let excludes: Vec<ExcludeDependency> = excludes\n        .into_iter()\n        .chain(excludes_from_workspace)\n        .collect();","sourceCodeStart":216,"sourceCodeEnd":252,"githubUrl":"https://github.com/astral-sh/uv/blob/f1a42680ff5272232d65748acf338b19778dde24/crates/uv/src/commands/pip/compile.rs#L216-L252","documentation":"Error \"`pylock.toml` is not a supported input format for `uv pip compile`\" thrown in astral-sh/uv.","triggerScenarios":"Thrown at crates/uv/src/commands/pip/compile.rs:234 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"}