diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-12-19 18:58:52 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-12-23 22:15:11 -0800 |
| commit | 2e4a6c88b535f049fd52a84d9b9e510cf70a42fd (patch) | |
| tree | 09e831f13992f3c542601c677225f3547ba9f79f /src/Package/Fetch/git.zig | |
| parent | 99f25bfc23a902d7cf047ae2b95e1d9d7e3b09ee (diff) | |
| download | zig-2e4a6c88b535f049fd52a84d9b9e510cf70a42fd.tar.gz zig-2e4a6c88b535f049fd52a84d9b9e510cf70a42fd.zip | |
compiler: fix test-unit compilation failures
Diffstat (limited to 'src/Package/Fetch/git.zig')
| -rw-r--r-- | src/Package/Fetch/git.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Package/Fetch/git.zig b/src/Package/Fetch/git.zig index f241f768f6..0cb7e62300 100644 --- a/src/Package/Fetch/git.zig +++ b/src/Package/Fetch/git.zig @@ -1586,7 +1586,7 @@ fn runRepositoryTest(io: Io, comptime format: Oid.Format, head_commit: []const u defer git_dir.cleanup(); var pack_file = try git_dir.dir.createFile(io, "testrepo.pack", .{ .read = true }); defer pack_file.close(io); - try pack_file.writeAll(testrepo_pack); + try pack_file.writeStreamingAll(io, testrepo_pack); var pack_file_buffer: [2000]u8 = undefined; var pack_file_reader = pack_file.reader(io, &pack_file_buffer); @@ -1648,7 +1648,7 @@ fn runRepositoryTest(io: Io, comptime format: Oid.Format, head_commit: []const u defer for (actual_files.items) |file| testing.allocator.free(file); var walker = try worktree.dir.walk(testing.allocator); defer walker.deinit(); - while (try walker.next()) |entry| { + while (try walker.next(io)) |entry| { if (entry.kind != .file) continue; const path = try testing.allocator.dupe(u8, entry.path); errdefer testing.allocator.free(path); |
