mod: pin implementation to latest release version of zig
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m30s

This commit is contained in:
2026-01-17 10:51:29 +01:00
parent b868bb1300
commit 57631f1905
3 changed files with 8 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ jobs:
- name: Setup zig installation - name: Setup zig installation
uses: mlugg/setup-zig@v2 uses: mlugg/setup-zig@v2
with: with:
version: master version: latest
- name: Lint check - name: Lint check
run: zig fmt --check . run: zig fmt --check .
- name: Spell checking - name: Spell checking

View File

@@ -16,7 +16,7 @@ jobs:
- name: Setup zig installation - name: Setup zig installation
uses: mlugg/setup-zig@v2 uses: mlugg/setup-zig@v2
with: with:
version: master version: latest
- name: Lint check - name: Lint check
run: zig fmt --check . run: zig fmt --check .
- name: Spell checking - name: Spell checking

View File

@@ -1,7 +1,7 @@
/// *zlog* defaultLog function replacement, which adjusts the surrounding contents of every `std.log` message. /// *zlog* defaultLog function replacement, which adjusts the surrounding contents of every `std.log` message.
fn logFn( fn logFn(
comptime message_level: log.Level, comptime message_level: log.Level,
comptime scope: @EnumLiteral(), comptime scope: @Type(.enum_literal),
comptime format: []const u8, comptime format: []const u8,
args: anytype, args: anytype,
) void { ) void {
@@ -42,12 +42,13 @@ fn logFn(
}; };
const complete_format = level_txt ++ prefix ++ format ++ "\n"; const complete_format = level_txt ++ prefix ++ format ++ "\n";
const io = std.debug.lockStderr(&buf); var buffer = fs.File.stderr().writer(&buf);
defer std.debug.unlockStderr(); var writer = &buffer.interface;
var writer = &io.file_writer.interface;
defer writer.flush() catch unreachable; defer writer.flush() catch unreachable;
std.debug.lockStdErr();
defer std.debug.unlockStdErr();
log_writing(writer, complete_format, true, args); log_writing(writer, complete_format, true, args);
} }
} }