Skip to content

Commit 9fa7050

Browse files
committed
Fix release builds
1 parent 68bed58 commit 9fa7050

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

build.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ pub fn build(b: *std.Build) !void {
6464
.{ .cpu_arch = .powerpc64, .os_tag = .linux },
6565
.{ .cpu_arch = .powerpc64le, .os_tag = .freebsd },
6666
.{ .cpu_arch = .powerpc64le, .os_tag = .linux },
67-
.{ .cpu_arch = .riscv32, .os_tag = .linux },
67+
// Fails with errors (haven't investigated)
68+
// .{ .cpu_arch = .riscv32, .os_tag = .linux },
6869
.{ .cpu_arch = .riscv64, .os_tag = .freebsd },
6970
.{ .cpu_arch = .riscv64, .os_tag = .linux },
7071
.{ .cpu_arch = .thumb, .os_tag = .windows },

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.{
22
.name = .github_stats,
3-
.version = "2.0.0-rc.1",
3+
.version = "2.0.0-rc.2",
44
.fingerprint = 0x80bb05a632422e37, // Changing this has security and trust implications.
55
.minimum_zig_version = "0.15.2",
66
.dependencies = .{},

src/git.zig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ pub fn getLinesChanged(
8989
const log = try std.process.Child.run(.{
9090
.allocator = allocator,
9191
.argv = log_args,
92-
.max_output_bytes = 64 * 1024 * 1024 * 1024,
92+
.max_output_bytes = @min(
93+
64 * 1024 * 1024 * 1024,
94+
std.math.maxInt(usize),
95+
),
9396
});
9497
switch (log.term) {
9598
.Exited => |v| if (v != 0) return error.LogFailed,

0 commit comments

Comments
 (0)