diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2025-05-21 08:54:22 +0100 |
|---|---|---|
| committer | Matthew Lugg <mlugg@mlugg.co.uk> | 2025-05-21 15:20:23 +0100 |
| commit | a5861fcddd97bd55249490063dc97102d801bf81 (patch) | |
| tree | db2a5fb9cfe5d8e9a2e1b98323ba13f5b82a4541 /src/Package/Module.zig | |
| parent | 3416452d567e6725ef887252237e553f7d7be242 (diff) | |
| download | zig-a5861fcddd97bd55249490063dc97102d801bf81.tar.gz zig-a5861fcddd97bd55249490063dc97102d801bf81.zip | |
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!
Diffstat (limited to 'src/Package/Module.zig')
| -rw-r--r-- | src/Package/Module.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Package/Module.zig b/src/Package/Module.zig index 18a6afdc09..207c233898 100644 --- a/src/Package/Module.zig +++ b/src/Package/Module.zig @@ -432,7 +432,7 @@ pub fn createLimited(gpa: Allocator, options: LimitedOptions) Allocator.Error!*P /// Does not ensure that the module's root directory exists on-disk; see `Builtin.updateFileOnDisk` for that task. pub fn createBuiltin(arena: Allocator, opts: Builtin, dirs: Compilation.Directories) Allocator.Error!*Module { - const sub_path = "b" ++ Cache.binToHex(opts.hash()); + const sub_path = "b" ++ std.fs.path.sep_str ++ Cache.binToHex(opts.hash()); const new = try arena.create(Module); new.* = .{ .root = try .fromRoot(arena, dirs, .global_cache, sub_path), |
