authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-02-10 20:55:05 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-02-10 20:55:05 -08:00
loge2653bff9ba6cc7ce59f8cb498728e2b9a38d997
tree4641d4740bcf61168ad9507a9f12e2da8d27a5a4
parente35939e19dfe5feff7cd655e12e01a561a813103

util/module: cache is relative now


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

src/util/module.zig+1-1
...@@ -62,7 +62,7 @@ pub const Module = struct {...@@ -62,7 +62,7 @@ pub const Module = struct {
62 const h = &std.crypto.hash.Blake3.init(.{});62 const h = &std.crypto.hash.Blake3.init(.{});
63 for (file_list_2.items) |item| {63 for (file_list_2.items) |item| {
64 const abs_path = try u.concat(&[_][]const u8{cdpath, "/", self.clean_path, "/", item});64 const abs_path = try u.concat(&[_][]const u8{cdpath, "/", self.clean_path, "/", item});
65 const file = try std.fs.openFileAbsolute(abs_path, .{});65 const file = try std.fs.cwd().openFile(abs_path, .{});
66 defer file.close();66 defer file.close();
67 const input = try file.reader().readAllAlloc(gpa, u.mb);67 const input = try file.reader().readAllAlloc(gpa, u.mb);
68 h.update(input);68 h.update(input);