fix: build.zig now works with new zig version
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
LordMZTE 2022-07-22 15:59:37 +02:00
parent 7271d124fb
commit b5244efbd8
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -40,7 +40,7 @@ pub fn main() !void {
const writer = ArchiveWriter{ .context = zip.? };
var overrides = try std.fs.cwd().openDir("overrides", .{ .iterate = true });
var overrides = try std.fs.cwd().openIterableDir("overrides", .{});
defer overrides.close();
var walker = try overrides.walk(std.heap.c_allocator);
defer walker.deinit();
@ -64,7 +64,7 @@ pub fn main() !void {
0,
);
defer std.heap.c_allocator.free(path);
var file = try overrides.openFile(e.path, .{});
var file = try overrides.dir.openFile(e.path, .{});
defer file.close();
try archiveFile(