From e2653bff9ba6cc7ce59f8cb498728e2b9a38d997 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Wed, 10 Feb 2021 20:55:05 -0800 Subject: [PATCH] util/module: cache is relative now --- src/util/module.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/module.zig b/src/util/module.zig index 991da9b818ddb4625158dcd7c31edd19c86cdb13..2917bc8dba23013a6f5050b7f7036b4fd497af37 100644 --- a/src/util/module.zig +++ b/src/util/module.zig @@ -62,7 +62,7 @@ pub const Module = struct { const h = &std.crypto.hash.Blake3.init(.{}); for (file_list_2.items) |item| { const abs_path = try u.concat(&[_][]const u8{cdpath, "/", self.clean_path, "/", item}); - const file = try std.fs.openFileAbsolute(abs_path, .{}); + const file = try std.fs.cwd().openFile(abs_path, .{}); defer file.close(); const input = try file.reader().readAllAlloc(gpa, u.mb); h.update(input); -- 2.54.0