From fdf8e6df2becae5ffd8076cb3fb85d7b639c2cb8 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 1 Jul 2026 13:13:09 -0700 Subject: [PATCH] Maker: simplify config_tmp_path expression --- lib/compiler/Maker.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/compiler/Maker.zig b/lib/compiler/Maker.zig index 0da5d000a41f9952954acf834f110afb161c9482..ee3c189a28173d70378a15c05f513df057375583 100644 --- a/lib/compiler/Maker.zig +++ b/lib/compiler/Maker.zig @@ -1250,11 +1250,9 @@ fn configure(graph: *Graph, options: ConfigureOptions) !ScannedConfig { }) }); } - const rand_int = randInt(io, u64); - const tmp_dir_sub_path = "tmp" ++ Dir.path.sep_str ++ std.fmt.hex(rand_int); const config_tmp_path: Path = .{ .root_dir = graph.local_cache_root, - .sub_path = try arena.dupe(u8, tmp_dir_sub_path), + .sub_path = try arena.print("tmp" ++ Dir.path.sep_str ++ "{x}", .{randInt(io, u64)}), }; const config_tmp_file: Io.File = try config_tmp_path.root_dir.handle.createFile( io, -- 2.54.0