From 11f39f6166c3d7a521725b938a166659f64abb59 Mon Sep 17 00:00:00 2001 From: Peter Hill Date: Wed, 12 Mar 2025 15:58:51 +0000 Subject: [PATCH] [ruff] Fix `last_tag`/`commits_since_last_tag` for `version` command Since Ruff changed to GitHub releases, tags are no longer annotated and `git describe` no longer picks them up. --- crates/ruff/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff/build.rs b/crates/ruff/build.rs index bb5ac821bf..db70699e7e 100644 --- a/crates/ruff/build.rs +++ b/crates/ruff/build.rs @@ -49,7 +49,7 @@ fn commit_info(workspace_root: &Path) { .arg("-1") .arg("--date=short") .arg("--abbrev=9") - .arg("--format=%H %h %cd %(describe)") + .arg("--format=%H %h %cd %(describe:tags)") .output() { Ok(output) if output.status.success() => output,