{"record":{"id":"dd07d2cfdcc494aa","repo":"astral-sh/uv","slug":"old-version-new-version-didn-t-increase-the-dd07d2","errorCode":null,"errorMessage":"{old_version} => {new_version} didn't increase the version; provide the exact version to force an update","messagePattern":"(.+?) => (.+?) didn't increase the version; provide the exact version to force an update","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/uv/src/commands/project/version.rs","lineNumber":320,"sourceCode":"                    value: spec.value,\n                }),\n                VersionBump::Post => new_version.bump(BumpCommand::BumpPost { value: spec.value }),\n                VersionBump::Dev => new_version.bump(BumpCommand::BumpDev { value: spec.value }),\n            }\n        }\n\n        if new_version <= old_version {\n            if old_version.is_stable() && new_version.is_pre() {\n                return Err(anyhow!(\n                    \"{old_version} => {new_version} didn't increase the version; when bumping to a pre-release version you also need to increase a release version component, e.g., with `--bump <major|minor|patch>`\"\n                ));\n            }\n            if new_version.is_dev() && !old_version.is_dev() {\n                return Err(anyhow!(\n                    \"{old_version} => {new_version} didn't increase the version; when bumping to a dev version you also need to increase another version component, e.g., with `--bump <major|minor|patch|alpha|beta|rc>`\"\n                ));\n            }\n            return Err(anyhow!(\n                \"{old_version} => {new_version} didn't increase the version; provide the exact version to force an update\"\n            ));\n        }\n\n        Some(new_version)\n    } else {\n        None\n    };\n\n    // Update the toml and lock\n    let status = if dry_run {\n        ExitStatus::Success\n    } else if let Some(new_version) = &new_version {\n        let project = update_project(\n            project,\n            new_version,\n            &mut toml,\n            &pyproject_path,","sourceCodeStart":302,"sourceCodeEnd":338,"githubUrl":"https://github.com/astral-sh/uv/blob/f1a42680ff5272232d65748acf338b19778dde24/crates/uv/src/commands/project/version.rs#L302-L338","documentation":"Error \"{old_version} => {new_version} didn't increase the version; provide the exact version to force an update\" thrown in astral-sh/uv.","triggerScenarios":"Thrown at crates/uv/src/commands/project/version.rs:320 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"}