graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
graff update: propagate curl failure across the pipe (set -o pipefail)
Pranav P11a91e07cde3
diff --git a/src/main.zig b/src/main.zigindex 8d12f0f6..03ddb995 100644--- a/src/main.zig+++ b/src/main.zig@@ -3606,7 +3606,10 @@ fn updateCommand(// Delegate download/codesign/atomic swap to install.sh. Inherit our stdio// so its progress (and any sudo prompt) reaches the terminal directly.- const cmd = try std.fmt.allocPrint(arena, "curl -fsSL {s} | HARNESS_NO_GRAFF=1 sh", .{install_url});+ // "set -o pipefail" is required: without it, a failed "curl" is masked+ // by the right-hand "sh" exiting 0 on EOF, and the pipeline reports+ // success while installing nothing — silently.+ const cmd = try std.fmt.allocPrint(arena, "set -o pipefail; curl -fsSL {s} | HARNESS_NO_GRAFF=1 sh", .{install_url});var child = std.process.spawn(io, .{ .argv = &.{ "/bin/sh", "-c", cmd } }) catch |err|std.process.fatal("update: could not launch installer: {t}", .{err});const term = child.wait(io) catch std.process.fatal("update: installer did not exit cleanly", .{});