aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurenČ›iu Nicola <[email protected]>2021-04-13 07:20:17 +0100
committerLaurenČ›iu Nicola <[email protected]>2021-04-13 07:20:17 +0100
commit3b964c0c81e7b8fa0c3ce6425e9ac2d0553bda2f (patch)
tree688189f4fafc18b2a00d63f7828d437d926bae0e
parent27e80e943824855c5913f20a776b3a5fa959e942 (diff)
Exclude nightly tag from git describe to fix version string
-rw-r--r--crates/rust-analyzer/build.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/rust-analyzer/build.rs b/crates/rust-analyzer/build.rs
index 999dc5928..13b903891 100644
--- a/crates/rust-analyzer/build.rs
+++ b/crates/rust-analyzer/build.rs
@@ -39,7 +39,8 @@ fn set_rerun() {
39} 39}
40 40
41fn rev() -> Option<String> { 41fn 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()?;
43 let stdout = String::from_utf8(output.stdout).ok()?; 44 let stdout = String::from_utf8(output.stdout).ok()?;
44 Some(stdout) 45 Some(stdout)
45} 46}