{"record":{"id":"8fa069dde197f559","repo":"astral-sh/uv","slug":"old-version-new-version-didn-t-increase-the-8fa069","errorCode":null,"errorMessage":"{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>`","messagePattern":"(.+?) => (.+?) 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>`","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/uv/src/commands/project/version.rs","lineNumber":316,"sourceCode":"                    value: spec.value,\n                }),\n                VersionBump::Rc => new_version.bump(BumpCommand::BumpPrerelease {\n                    kind: PrereleaseKind::Rc,\n                    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(","sourceCodeStart":298,"sourceCodeEnd":334,"githubUrl":"https://github.com/astral-sh/uv/blob/f1a42680ff5272232d65748acf338b19778dde24/crates/uv/src/commands/project/version.rs#L298-L334","documentation":"Error \"{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>`\" thrown in astral-sh/uv.","triggerScenarios":"Thrown at crates/uv/src/commands/project/version.rs:316 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"}