From c974e198164e13fea491e3897a04ec82d132fbf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Anic=CC=81?= Date: Mon, 11 Mar 2024 13:30:26 +0100 Subject: [PATCH] docs: make docs work with recent tar changes It is no longer need to call skip if file content is not consumed. It is handled internally now. File types are now same as in os.File. --- lib/docs/wasm/main.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/docs/wasm/main.zig b/lib/docs/wasm/main.zig index 824026c96e..496fd618d5 100644 --- a/lib/docs/wasm/main.zig +++ b/lib/docs/wasm/main.zig @@ -767,7 +767,7 @@ fn unpack_inner(tar_bytes: []u8) !void { }); while (try it.next()) |tar_file| { switch (tar_file.kind) { - .normal => { + .file => { if (tar_file.size == 0 and tar_file.name.len == 0) break; if (std.mem.endsWith(u8, tar_file.name, ".zig")) { log.debug("found file: '{s}'", .{tar_file.name}); @@ -790,7 +790,6 @@ fn unpack_inner(tar_bytes: []u8) !void { tar_file.name, }); } - try tar_file.skip(); }, else => continue, }