a73x

0769c1bb

build: fmt gate also checks build.zig.zon

a73x   2026-08-14 09:38

Commit message
build: fmt gate also checks build.zig.zon

zig fmt formats .zon files in 0.15; zon drift was previously
unchecked (Task 1 review note). build.zig.zon was already
formatted, so no rewrite was needed here.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

build.zig
Old New
@@ -582,7 +582,7 @@ pub fn build(b: *std.Build) void {
582 // The format gate. `check = true` makes this a --check run: it fails 582 // The format gate. `check = true` makes this a --check run: it fails
583 // naming the offending files and rewrites nothing. 583 // naming the offending files and rewrites nothing.
584 const fmt_step = b.step("fmt", "Check formatting (zig fmt --check)"); 584 const fmt_step = b.step("fmt", "Check formatting (zig fmt --check)");
585 const fmt = b.addFmt(.{ .paths = &.{ "build.zig", "src", "test" }, .check = true }); 585 const fmt = b.addFmt(.{ .paths = &.{ "build.zig", "build.zig.zon", "src", "test" }, .check = true });
586 fmt_step.dependOn(&fmt.step); 586 fmt_step.dependOn(&fmt.step);
587 587
588 // The seconds-long pre-commit gate: fmt + unit tests. e2e/agent/soak 588 // The seconds-long pre-commit gate: fmt + unit tests. e2e/agent/soak