From 53ac60c8759a17f9bcaa42e22ab54f5236d07786 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Fri, 22 Aug 2025 12:52:57 -0700 Subject: [PATCH] don't forget to flush! --- codegen/src/main.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/codegen/src/main.zig b/codegen/src/main.zig index 4066d4f..fd4123f 100644 --- a/codegen/src/main.zig +++ b/codegen/src/main.zig @@ -133,6 +133,7 @@ fn processDirectories(models_dir: std.fs.Dir, output_dir: std.fs.Dir, parent_pro const manifest_file = try output_dir.createFile("service_manifest.zig", .{}); defer manifest_file.close(); var manifest = manifest_file.writer(&manifest_buf); + defer manifest.interface.flush() catch @panic("Error flushing service_manifest.zig"); var mi = models_dir.iterate(); const generating_models_progress = parent_progress.start("generating models", count);