| ... | @@ -186,6 +186,10 @@ pub const CacheHash = struct { | ... | @@ -186,6 +186,10 @@ pub const CacheHash = struct { |
| 186 | return error.InvalidFormat; | 186 | return error.InvalidFormat; |
| 187 | } | 187 | } |
| 188 | | 188 | |
| | 189 | if (cache_hash_file.path == null) { |
| | 190 | cache_hash_file.path = try mem.dupe(self.alloc, u8, file_path); |
| | 191 | } |
| | 192 | |
| 189 | const this_file = fs.cwd().openFile(cache_hash_file.path.?, .{ .read = true }) catch { | 193 | const this_file = fs.cwd().openFile(cache_hash_file.path.?, .{ .read = true }) catch { |
| 190 | return error.CacheUnavailable; | 194 | return error.CacheUnavailable; |
| 191 | }; | 195 | }; |