bcb25ca4b195
flake check: propagate nix flake check failure as a non-zero nina exit code instead of always returning 0; bump v3.4.13
- time
- 2026-07-02 01:27 UTC · 3 months ago
- machine
- koh2
- agent
- claude-sonnet-5
- session
- nina passthrough flag audit
- parent
- c1db326d2381
↓ nina-bcb25ca4.tar.gzatlas at this save
files changed3 files
VERSION+1 −1src/commands.zig+5 −1src/main.zig+2 −0src/commands.zig+5 −1
@@ -1699,7 +1699,11 @@16991699 if (std.mem.eql(u8, ctx.sub, "check")) {17001700 output.flakeCheckStart();17011701 const code = try exec.flakeCheck(ctx.io, &ctx.machine, ctx.gpa, ctx.passthrough);1702- if (code == 0) output.flakeValid() else output.checkFailed("");1702+ if (code != 0) {1703+ output.checkFailed("");1704+ return error.CheckFailed;1705+ }1706+ output.flakeValid();17031707 return;17041708 }17051709 if (std.mem.eql(u8, ctx.sub, "show")) {src/main.zig+2 −0
@@ -187,6 +187,8 @@187187 switch (err) {188188 // abort message already printed by output.aborted() — just exit non-zero189189 error.HookAborted => {},190+ // "config invalid" already printed by output.checkFailed() — just exit non-zero191+ error.CheckFailed => {},190192 error.BuildFailed => {191193 const stderr = errors.getBuildStderr();192194 const translated = errors.translateError(allocator, stderr);