c93535d54e46

check: thread ctx.passthrough into flake check argv (dry-build/check argv already covered by the nixos-rebuild pass)

time
2026-07-02 00:57 UTC · 3 months ago
machine
koh2
agent
claude-sonnet-5
session
nina passthrough flag audit
parent
af8ae2f6db79
2 files src/commands.zig+1 −1src/exec.zig+6 −2
src/commands.zig+1 −1
@@ -1698,7 +1698,7 @@16981698     }16991699     if (std.mem.eql(u8, ctx.sub, "check")) {17001700         output.flakeCheckStart();1701-        const code = try exec.flakeCheck(ctx.io, &ctx.machine, ctx.gpa);1701+        const code = try exec.flakeCheck(ctx.io, &ctx.machine, ctx.gpa, ctx.passthrough);17021702         if (code == 0) output.flakeValid() else output.checkFailed("");17031703         return;17041704     }

view file

src/exec.zig+6 −2
@@ -1048,8 +1048,12 @@10481048     return stream(io, machine, gpa, &.{ "sh", "-c", "cd \"$0\" && nix flake update", dir });10491049 }10501050 1051-pub fn flakeCheck(io: std.Io, machine: *const types.Machine, gpa: std.mem.Allocator) !u8 {1052-    return stream(io, machine, gpa, &.{ "nix", "flake", "check" });1051+pub fn flakeCheck(io: std.Io, machine: *const types.Machine, gpa: std.mem.Allocator, extra_flags: []const []const u8) !u8 {1052+    var argv: std.ArrayList([]const u8) = .empty;1053+    defer argv.deinit(gpa);1054+    try argv.appendSlice(gpa, &.{ "nix", "flake", "check" });1055+    try argv.appendSlice(gpa, extra_flags);1056+    return stream(io, machine, gpa, argv.items);10531057 }10541058 10551059 pub fn flakeInit(io: std.Io, machine: *const types.Machine, gpa: std.mem.Allocator) !u8 {

view file