Skip to content

Commit 6dbcc3b

Browse files
ianprime0509andrewrk
authored andcommitted
Autodoc: fix sources.tar generation
Closes #24565
1 parent a189335 commit 6dbcc3b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Compilation.zig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4880,6 +4880,14 @@ fn docsCopyFallible(comp: *Compilation) anyerror!void {
48804880
try seen_table.ensureUnusedCapacity(comp.gpa, deps.len);
48814881
for (deps) |dep| seen_table.putAssumeCapacity(dep, dep.fully_qualified_name);
48824882
}
4883+
4884+
tar_file_writer.end() catch |err| {
4885+
return comp.lockAndSetMiscFailure(
4886+
.docs_copy,
4887+
"unable to write '{f}/sources.tar': {t}",
4888+
.{ docs_path, err },
4889+
);
4890+
};
48834891
}
48844892

48854893
fn docsCopyModule(

0 commit comments

Comments
 (0)