From 3b964c0c81e7b8fa0c3ce6425e9ac2d0553bda2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Tue, 13 Apr 2021 09:20:17 +0300 Subject: Exclude nightly tag from git describe to fix version string --- crates/rust-analyzer/build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates') 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() { } fn rev() -> Option { - let output = Command::new("git").args(&["describe", "--tags"]).output().ok()?; + let output = + Command::new("git").args(&["describe", "--tags", "--exclude", "nightly"]).output().ok()?; let stdout = String::from_utf8(output.stdout).ok()?; Some(stdout) } -- cgit v1.2.3