astral-sh/uv · error
`--bump stable` cannot be used with another `--bump` value,
Error message
`--bump stable` cannot be used with another `--bump` value, got: {components} What it means
Error "`--bump stable` cannot be used with another `--bump` value, got: {components}" thrown in astral-sh/uv.
Source
Thrown at crates/uv/src/commands/project/version.rs:221
.collect();
let post_count = bump
.iter()
.filter(|spec| spec.bump == VersionBump::Post)
.count();
let stable_count = bump
.iter()
.filter(|spec| spec.bump == VersionBump::Stable)
.count();
// Very little reason to do "bump to stable" and then do other things,
// even if we can make sense of it.
if stable_count > 0 && bump.len() > 1 {
let components = bump
.iter()
.map(ToString::to_string)
.collect::<Vec<_>>()
.join(", ");
return Err(anyhow!(
"`--bump stable` cannot be used with another `--bump` value, got: {components}"
));
}
// Very little reason to "bump to post" and then do other things,
// how is it a post-release otherwise?
if post_count > 0 && bump.len() > 1 {
let components = bump
.iter()
.map(ToString::to_string)
.collect::<Vec<_>>()
.join(", ");
return Err(anyhow!(
"`--bump post` cannot be used with another `--bump` value, got: {components}"
));
}
// `--bump major --bump minor` makes perfect sense (1.2.3 => 2.1.0)View on GitHub (pinned to f1a42680ff)
When it happens
Trigger: Thrown at crates/uv/src/commands/project/version.rs:221 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of astral-sh/uv@f1a42680ff (2026-08-16).
Data as JSON: /api/errors/33a379902a85bfce.
Report an issue: GitHub.