summaryrefslogtreecommitdiffstats
path: root/xtask/src
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-07-08 14:04:54 -0500
committerToby Vincent <tobyv13@gmail.com>2023-07-08 14:04:54 -0500
commit21cc63cea4773808324024c4c03ea647efc55957 (patch)
tree0d6afe428277da25f5ea5355c330b794e500f5b2 /xtask/src
parent627c3b6b0419f3b2cd309e7d8253aa186a800c0b (diff)
build: fix version parsing from git tag
Diffstat (limited to 'xtask/src')
-rw-r--r--xtask/src/release.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/xtask/src/release.rs b/xtask/src/release.rs
index d9e7015..274df12 100644
--- a/xtask/src/release.rs
+++ b/xtask/src/release.rs
@@ -75,7 +75,9 @@ impl Step {
.output()?
.stdout;
- let prev = std::str::from_utf8(&stdout)?.parse()?;
+ let prev = std::str::from_utf8(&stdout)?
+ .trim_start_matches('v')
+ .parse()?;
let next = level.bump(&prev);
Self::tag(prev, next)?;
}