fix(xtask): error if new version supplied to bump-version is less than
or equal to current version
This commit is contained in:
parent
07a1b7fc00
commit
5985690d45
1 changed files with 5 additions and 0 deletions
|
|
@ -127,6 +127,11 @@ pub fn run(args: BumpVersion) -> Result<()> {
|
|||
}
|
||||
next_version
|
||||
};
|
||||
if next_version <= current_version {
|
||||
return Err(anyhow!(format!(
|
||||
"Next version {next_version} must be greater than current version {current_version}"
|
||||
)));
|
||||
}
|
||||
|
||||
println!("Bumping from {current_version} to {next_version}");
|
||||
update_crates(¤t_version, &next_version)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue