From 47fb93e2288aecbfcccdc3c60ae18dba321d56ed Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Tue, 2 Jul 2024 18:59:51 +0200 Subject: [PATCH] fix: add --tags to git describe call --- build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 03f6ba2..fe7efb9 100644 --- a/build.zig +++ b/build.zig @@ -302,7 +302,7 @@ pub fn build(b: *std.Build) void { fn gen_version_info(b: *std.Build, writer: anytype) !void { var code: u8 = 0; - const describe = try b.runAllowFail(&[_][]const u8{ "git", "describe", "--always" }, &code, .Ignore); + const describe = try b.runAllowFail(&[_][]const u8{ "git", "describe", "--always", "--tags" }, &code, .Ignore); const branch_ = try b.runAllowFail(&[_][]const u8{ "git", "rev-parse", "--abbrev-ref", "HEAD" }, &code, .Ignore); const remote_ = try b.runAllowFail(&[_][]const u8{ "git", "config", "remote.origin.url" }, &code, .Ignore); const log_ = try b.runAllowFail(&[_][]const u8{ "git", "log", "--pretty=oneline", "@{u}..." }, &code, .Ignore);