Skip to content

Commit a5861fc

Browse files
committed
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 parent 3416452 commit a5861fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Package/Module.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.
434434
pub 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),

0 commit comments

Comments
 (0)