diff --git a/lib/compiler/Maker.zig b/lib/compiler/Maker.zig index ef7c995d801e48b7fa6020e6481c7a47d7c0e857..0da5d000a41f9952954acf834f110afb161c9482 100644 --- a/lib/compiler/Maker.zig +++ b/lib/compiler/Maker.zig @@ -1254,7 +1254,7 @@ fn configure(graph: *Graph, options: ConfigureOptions) !ScannedConfig { 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 = tmp_dir_sub_path, + .sub_path = try arena.dupe(u8, tmp_dir_sub_path), }; const config_tmp_file: Io.File = try config_tmp_path.root_dir.handle.createFile( io,