Skip to content

Commit 7aea5cf

Browse files
committed
fix git issue with superhtml as a dependency
1 parent 01d06b8 commit 7aea5cf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

build.zig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,15 @@ const Version = union(Kind) {
273273
};
274274
fn getVersion(b: *std.Build) Version {
275275
const git_path = b.findProgram(&.{"git"}, &.{}) catch return .unknown;
276+
var out: u8 = undefined;
276277
const git_describe = std.mem.trim(
277278
u8,
278-
b.run(&[_][]const u8{
279+
b.runAllowFail(&[_][]const u8{
279280
git_path, "-C",
280281
b.build_root.path.?, "describe",
281282
"--match", "*.*.*",
282283
"--tags",
283-
}),
284+
}, &out, .Ignore) catch return .unknown,
284285
" \n\r",
285286
);
286287

0 commit comments

Comments
 (0)