Skip to content

Commit

Permalink
fix git issue with superhtml as a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff-it committed Jul 25, 2024
1 parent 01d06b8 commit 7aea5cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,15 @@ const Version = union(Kind) {
};
fn getVersion(b: *std.Build) Version {
const git_path = b.findProgram(&.{"git"}, &.{}) catch return .unknown;
var out: u8 = undefined;
const git_describe = std.mem.trim(
u8,
b.run(&[_][]const u8{
b.runAllowFail(&[_][]const u8{
git_path, "-C",
b.build_root.path.?, "describe",
"--match", "*.*.*",
"--tags",
}),
}, &out, .Ignore) catch return .unknown,
" \n\r",
);

Expand Down

0 comments on commit 7aea5cf

Please sign in to comment.