authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-05-21 08:54:22+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-05-21 15:20:23+01:00
loga5861fcddd97bd55249490063dc97102d801bf81
treedb2a5fb9cfe5d8e9a2e1b98323ba13f5b82a4541
parent3416452d567e6725ef887252237e553f7d7be242

Module: name builtin module root directory correctly

37a9a4e accidentally turned paths `b/[hash]/` into `b[hash]/` in the global cache. This doesn't technically break anything, but it pollutes the global cache directory. Sorry about that one!

1 files changed, 1 insertions(+), 1 deletions(-)

src/Package/Module.zig+1-1
......@@ -432,7 +432,7 @@ pub fn createLimited(gpa: Allocator, options: LimitedOptions) Allocator.Error!*P
432432
433433/// Does not ensure that the module's root directory exists on-disk; see `Builtin.updateFileOnDisk` for that task.
434434pub fn createBuiltin(arena: Allocator, opts: Builtin, dirs: Compilation.Directories) Allocator.Error!*Module {
435 const sub_path = "b" ++ Cache.binToHex(opts.hash());
435 const sub_path = "b" ++ std.fs.path.sep_str ++ Cache.binToHex(opts.hash());
436436 const new = try arena.create(Module);
437437 new.* = .{
438438 .root = try .fromRoot(arena, dirs, .global_cache, sub_path),