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.
This commit is contained in:
mlugg 2023-07-29 02:15:57 +01:00 committed by Andrew Kelley
parent e8e9a4ac66
commit 417b92f085

View File

@ -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();