Skip to content

Commit 3b964c0

Browse files
committed
Exclude nightly tag from git describe to fix version string
1 parent 27e80e9 commit 3b964c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/rust-analyzer/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ fn set_rerun() {
3939
}
4040

4141
fn rev() -> Option<String> {
42-
let output = Command::new("git").args(&["describe", "--tags"]).output().ok()?;
42+
let output =
43+
Command::new("git").args(&["describe", "--tags", "--exclude", "nightly"]).output().ok()?;
4344
let stdout = String::from_utf8(output.stdout).ok()?;
4445
Some(stdout)
4546
}

0 commit comments

Comments
 (0)