diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-07-08 14:04:54 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-07-08 14:04:54 -0500 |
commit | 21cc63cea4773808324024c4c03ea647efc55957 (patch) | |
tree | 0d6afe428277da25f5ea5355c330b794e500f5b2 /xtask/src | |
parent | 627c3b6b0419f3b2cd309e7d8253aa186a800c0b (diff) |
build: fix version parsing from git tag
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/release.rs | 4 |
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)?; } |