diff options
| author | Ian Johnson <ian@ianjohnson.dev> | 2025-07-24 22:15:54 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-07-24 19:24:10 -0700 |
| commit | 6dbcc3bd5430a3f4ae1cf891f5270a989e4b1334 (patch) | |
| tree | 192e1e16d3a5b4ee692d85dbab74d352ea98d1a1 | |
| parent | a189335ea2e8750dcfce084eb375417798525351 (diff) | |
| download | zig-6dbcc3bd5430a3f4ae1cf891f5270a989e4b1334.tar.gz zig-6dbcc3bd5430a3f4ae1cf891f5270a989e4b1334.zip | |
Autodoc: fix sources.tar generation
Closes #24565
| -rw-r--r-- | src/Compilation.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 3cbddee64b..4ed2e8c0ca 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -4880,6 +4880,14 @@ fn docsCopyFallible(comp: *Compilation) anyerror!void { try seen_table.ensureUnusedCapacity(comp.gpa, deps.len); for (deps) |dep| seen_table.putAssumeCapacity(dep, dep.fully_qualified_name); } + + tar_file_writer.end() catch |err| { + return comp.lockAndSetMiscFailure( + .docs_copy, + "unable to write '{f}/sources.tar': {t}", + .{ docs_path, err }, + ); + }; } fn docsCopyModule( |
