Skip to content

Commit

Permalink
[update #51] zig 0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tiawl authored Jun 11, 2024
2 parents 0929832 + 1293471 commit f463708
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ If you want to see how to use it you can check repositories list into the [CICD

## Dependencies

The [Zig][2] part of this package is relying on the latest [Zig][2] release (0.12.0) and will only be updated for the next one (so for the 0.13.0).
The [Zig][2] part of this package is relying on the latest [Zig][2] release (0.13.0) and will only be updated for the next one (so for the 0.14.0).

## CICD reminder

Expand Down
2 changes: 1 addition & 1 deletion build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.{
.name = "toolbox",
.version = "1.5.0",
.minimum_zig_version = "0.12.0",
.minimum_zig_version = "0.13.0",
.dependencies = .{},
.paths = .{
"build.zig",
Expand Down
6 changes: 3 additions & 3 deletions build/command.zig
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub fn run (builder: *std.Build, proc: struct { argv: [] const [] const u8,
std.debug.print ("\x1b[35m[{s}]\x1b[0m\n",
.{ try std.mem.join (builder.allocator, " ", proc.argv), });

var child = std.ChildProcess.init (proc.argv, builder.allocator);
var child = std.process.Child.init (proc.argv, builder.allocator);

child.stdin_behavior = .Ignore;
child.stdout_behavior = .Pipe;
Expand All @@ -48,7 +48,7 @@ pub fn run (builder: *std.Build, proc: struct { argv: [] const [] const u8,

try child.spawn ();

var term: std.ChildProcess.Term = undefined;
var term: std.process.Child.Term = undefined;
if (proc.wait) |wait|
{
wait ();
Expand All @@ -57,7 +57,7 @@ pub fn run (builder: *std.Build, proc: struct { argv: [] const [] const u8,
try child.collectOutput (&stdout, &stderr, std.math.maxInt (usize));
term = try child.wait ();
}
const exit_success = std.ChildProcess.Term { .Exited = 0, };
const exit_success = std.process.Child.Term { .Exited = 0, };
if (!proc.ignore_errors and stderr.items.len > 0 and
!std.meta.eql (term, exit_success))
std.debug.print ("\x1b[31m{s}\x1b[0m", .{ stderr.items, });
Expand Down

0 comments on commit f463708

Please sign in to comment.