From 417b92f0852eca8bd47f1964a63a9d1f6f3e6f6b Mon Sep 17 00:00:00 2001 From: mlugg Date: Sat, 29 Jul 2023 02:15:57 +0100 Subject: [PATCH] package manager: don't show progress indicator on dumb terminals This mirrors the behavior of the progress indicator for the actual compilation. Not doing this was causing sporadic CI failures due to the (non-existent) fetches taking long enough to appear in stderr. --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index 39a7adc424..0f44968eb2 100644 --- a/src/main.zig +++ b/src/main.zig @@ -4438,7 +4438,7 @@ pub fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !voi try wip_errors.init(gpa); defer wip_errors.deinit(); - var progress: std.Progress = .{}; + var progress: std.Progress = .{ .dont_print_on_dumb = true }; const root_prog_node = progress.start("Fetch Packages", 0); defer root_prog_node.end();