Skip to content

Commit e4c6951

Browse files
authored
fix: correct version suffix for rc builds (#11961)
1 parent 9f42604 commit e4c6951

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/common/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ fn main() -> Result<(), Box<dyn Error>> {
3030
.unwrap_or_else(|_| String::from("dev"));
3131
let (is_nightly, version_suffix) = if tag_name.contains("nightly") {
3232
(true, "-nightly".to_string())
33+
} else if let Some((_, rc_number)) = tag_name.split_once("rc") {
34+
(false, format!("-rc{rc_number}"))
3335
} else {
3436
(false, format!("-{tag_name}"))
3537
};

0 commit comments

Comments
 (0)