╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ──────╮ │src/test/ui.zig│ ╰───────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────╮ │325 const temp_path = try temp.dir.realPathFileAlloc(io, ".", allocator); │ │326 defer allocator.free(temp_path); │ │327 │ │328 - const local_path = try std.fs.path.join(allocator, &.{ temp_path, "local" }); │ │328 + const local_path = try std.Io.Dir.path.join(allocator, &.{ temp_path, "local" }); │ │329 defer allocator.free(local_path); │ │330 - const remote_path = try std.fs.path.join(allocator, &.{ temp_path, "remote" }); │ │330 + const remote_path = try std.Io.Dir.path.join(allocator, &.{ temp_path, "remote" });│ │331 defer allocator.free(remote_path); │ │332 │ │333 const Repo = xit.repo.Repo(.git, .{}); │ ╰────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │350 _ = try local.commit(io, allocator, .{ .message = "master" }); │ │351 try local.addRemote(io, allocator, .{ .name = "origin", .value = remote_path }); │ │352 │ │353 - const id = [_]u8{1} ** evt.event_id_size; │ │353 + const id: [evt.event_id_size]u8 = @splat(1); │ │354 try evt.consume(.local, .repo, .git, .{}, io, allocator, &local, evt.events_ref, &.{.{│ │355 .id = std.fmt.bytesToHex(id, .lower), │ │356 .author = .{ .name = "haxy", .email = "user@haxy" }, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │362 { │ │363 var local = try Repo.open(io, allocator, .{ .path = local_path }); │ │364 defer local.deinit(io, allocator); │ │365 - const id = [_]u8{2} ** evt.event_id_size; │ │365 + const id: [evt.event_id_size]u8 = @splat(2); │ │366 try evt.consume(.local, .repo, .git, .{}, io, allocator, &local, evt.events_ref, &.{.{│ │367 .id = std.fmt.bytesToHex(id, .lower), │ │368 .author = .{ .name = "haxy", .email = "user@haxy" }, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────╮ │372 { │ │373 var remote = try RemoteRepo.open(io, allocator, .{ .path = remote_path }); │ │374 defer remote.deinit(io, allocator); │ │375 - const id = [_]u8{3} ** evt.event_id_size; │ │375 + const id: [evt.event_id_size]u8 = @splat(3); │ │376 try evt.consume(.local, .repo, .git, .{}, io, allocator, &remote, evt.events_ref, &.{.{│ │377 .id = std.fmt.bytesToHex(id, .lower), │ │378 .author = .{ .name = "haxy", .email = "user@haxy" }, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ────────╮ │src/test/undo.zig│ ╰─────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │20 const initial = try Undo.init(opts, &arena, &repo, null, "", null, .{ .location = .{ .repo = "" } });│ │21 try std.testing.expectEqual(1, initial.count); │ │22 for (0..25) |index| { │ │23 - const value = try std.fmt.allocPrint(arena.allocator(), "{d}", .{index}); │ │23 + const value = try arena.allocator().print("{d}", .{index}); │ │24 try repo.addConfig(io, allocator, .{ .name = "undo.value", .value = value }); │ │25 } │ │26 const first = try Undo.init(opts, &arena, &repo, null, "", null, .{ .location = .{ .repo = "" } }); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │61 defer arena.deinit(); │ │62 const aa = arena.allocator(); │ │63 const base = try temp.dir.realPathFileAlloc(io, ".", aa); │ │64 - const admin_path = try std.fs.path.join(aa, &.{ base, "admin" }); │ │65 - const users_dir = try std.fs.path.join(aa, &.{ base, "users" }); │ │64 + const admin_path = try std.Io.Dir.path.join(aa, &.{ base, "admin" }); │ │65 + const users_dir = try std.Io.Dir.path.join(aa, &.{ base, "users" }); │ │66 var admin = try xit.repo.Repo(.xit, evt.admin_repo_opts).init(io, allocator, .{ .path = admin_path }); │ │67 defer admin.deinit(io, allocator); │ │68 - const owner = [_]u8{1} ** evt.event_id_size; │ │69 - const writer = [_]u8{2} ** evt.event_id_size; │ │70 - const reader = [_]u8{3} ** evt.event_id_size; │ │71 - const repo_id = [_]u8{4} ** evt.event_id_size; │ │68 + const owner: [evt.event_id_size]u8 = @splat(1); │ │69 + const writer: [evt.event_id_size]u8 = @splat(2); │ │70 + const reader: [evt.event_id_size]u8 = @splat(3); │ │71 + const repo_id: [evt.event_id_size]u8 = @splat(4); │ │72 const author: evt.CommitAuthor = .{ .name = "test", .email = "test@example.test" }; │ │73 const writer_hex = std.fmt.bytesToHex(writer, .lower); │ │74 var repo_event: evt.Repo = .{ .user_id = &owner, .name = "demo", .description = "", .read_access = .public };│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──╮ │src/try.zig│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────╮ │61 \\-----END OPENSSH PRIVATE KEY----- │ │62 \\ │ │63 ); │ │64 - if (.windows != builtin.os.tag) { │ │65 - try priv_key_file.setPermissions(io, @enumFromInt(0o600)); │ │64 + if (.windows != builtin.target.os.tag) { │ │65 + try priv_key_file.setPermissions(io, @fromBackingInt(@intCast(0o600)));│ │66 } │ │67 } │ │68 │ ╰───────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │69 const cwd_path = try std.process.currentPathAlloc(io, allocator); │ │70 defer allocator.free(cwd_path); │ │71 - const key_path = try std.fs.path.join(allocator, &.{ cwd_path, temp_dir_name, "key" }); │ │71 + const key_path = try std.Io.Dir.path.join(allocator, &.{ cwd_path, temp_dir_name, "key" });│ │72 defer allocator.free(key_path); │ │73 │ │74 var cli = false; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │85 } │ │86 } │ │87 var serve_options = try hx.command.parseServeOptions(allocator, serve_args.items); │ │88 - const git_ssh_prefix = if (builtin.mode == .Debug) │ │89 - try std.fmt.allocPrint(allocator, "GIT_SSH_COMMAND='ssh -i \"{s}\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR' \\\r\n", .{key_path})│ │88 + const git_ssh_prefix = if (builtin.mode == .debug) │ │89 + try allocator.print("GIT_SSH_COMMAND='ssh -i \"{s}\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR' \\\r\n", .{key_path}) │ │90 else │ │91 ""; │ │92 defer if (git_ssh_prefix.len != 0) allocator.free(git_ssh_prefix); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ │ 94 serve_options.fallback_on_address_in_use = true; │ │ 95 │ │ 96 const server_path = if (std.mem.eql(u8, serve_options.data_dir, ".")) │ │ 97 - try std.fs.path.join(allocator, &.{ cwd_path, temp_dir_name, "server" }) │ │ 97 + try std.Io.Dir.path.join(allocator, &.{ cwd_path, temp_dir_name, "server" }) │ │ 98 else │ │ 99 - try std.fs.path.resolve(allocator, &.{ cwd_path, serve_options.data_dir }); │ │ 99 + try std.Io.Dir.path.resolveAlloc(allocator, &.{ cwd_path, serve_options.data_dir });│ │100 defer allocator.free(server_path); │ │101 serve_options.data_dir = server_path; │ │102 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯