mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:36:22 -04:00
fix(xtask): error if new version supplied to bump-version is less than
or equal to current version
(cherry picked from commit 5985690d45)
This commit is contained in:
parent
979e5ecec0
commit
774eebdf6b
|
|
@ -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…
Reference in a new issue