From 730a54a3ae896f8cef5bde05d49520fca0ebe5d8 Mon Sep 17 00:00:00 2001 From: Andrew Lilley Brinker Date: Wed, 6 Mar 2024 18:31:05 +0000 Subject: [PATCH] fix(xtask): Correct version prefix to include 'v' For the version comparison against what's expected by `git-cliff`, we have to do some version string parsing, and this involves stripping a prefix off which specifies the crate to _only_ get the actual version number triple portion. The prior prefix used was missing the letter "v" which is part of the prefix, and so parsing failed in practice. This commit adds the missing part of the prefix. Signed-off-by: Andrew Lilley Brinker --- xtask/src/release.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtask/src/release.rs b/xtask/src/release.rs index a37d79c..e46e223 100644 --- a/xtask/src/release.rs +++ b/xtask/src/release.rs @@ -209,7 +209,7 @@ impl Step for CheckChangelogVersionBump { "git cliff --config {config} --include-path {include} --bumped-version" ) .read()?; - let prefix = format!("{}-", self.krate.name()); + let prefix = format!("{}-v", self.krate.name()); let stripped = raw.strip_prefix(&prefix).unwrap_or(&raw); Version::parse(stripped)? };