commit 417b92f0852eca8bd47f1964a63a9d1f6f3e6f6b (tree)
parent e8e9a4ac664ca803514ca5f177f3384ce66e31fc
Author: mlugg <mlugg@mlugg.co.uk>
Date: Sat, 29 Jul 2023 02:15:57 +0100
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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();