mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
Update for new zig IO
`test/tests.zig` fails after https://github.com/ziglang/zig/pull/25592 was merged in. This just ensures that Io is passed, it might not be the ideal solution. `build.zig` was also failing due to new color parameter.
This commit is contained in:
@@ -570,12 +570,12 @@ const ZiglingStep = struct {
|
||||
|
||||
// Render compile errors at the bottom of the terminal.
|
||||
// TODO: use the same ttyconf from the builder.
|
||||
const ttyconf: std.Io.tty.Config = if (use_color_escapes)
|
||||
.escape_codes
|
||||
const color: std.zig.Color = if (use_color_escapes)
|
||||
.on
|
||||
else
|
||||
.no_color;
|
||||
.off;
|
||||
if (self.step.result_error_bundle.errorMessageCount() > 0) {
|
||||
self.step.result_error_bundle.renderToStdErr(.{ .ttyconf = ttyconf });
|
||||
self.step.result_error_bundle.renderToStdErr(.{}, color);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user