| ... | @@ -103,6 +103,7 @@ pub const CacheHash = struct { | ... | @@ -103,6 +103,7 @@ pub const CacheHash = struct { |
| 103 | var cache_hash_file = try self.files.addOne(); | 103 | var cache_hash_file = try self.files.addOne(); |
| 104 | cache_hash_file.path = try fs.path.resolve(self.alloc, &[_][]const u8{file_path}); | 104 | cache_hash_file.path = try fs.path.resolve(self.alloc, &[_][]const u8{file_path}); |
| 105 | cache_hash_file.max_file_size = max_file_size; | 105 | cache_hash_file.max_file_size = max_file_size; |
| | 106 | cache_hash_file.contents = null; |
| 106 | | 107 | |
| 107 | self.addSlice(cache_hash_file.path.?); | 108 | self.addSlice(cache_hash_file.path.?); |
| 108 | | 109 | |
| ... | @@ -175,6 +176,7 @@ pub const CacheHash = struct { | ... | @@ -175,6 +176,7 @@ pub const CacheHash = struct { |
| 175 | cache_hash_file = try self.files.addOne(); | 176 | cache_hash_file = try self.files.addOne(); |
| 176 | cache_hash_file.path = null; | 177 | cache_hash_file.path = null; |
| 177 | cache_hash_file.max_file_size = null; | 178 | cache_hash_file.max_file_size = null; |
| | 179 | cache_hash_file.contents = null; |
| 178 | } | 180 | } |
| 179 | | 181 | |
| 180 | var iter = mem.tokenize(line, " "); | 182 | var iter = mem.tokenize(line, " "); |
| ... | @@ -301,6 +303,8 @@ pub const CacheHash = struct { | ... | @@ -301,6 +303,8 @@ pub const CacheHash = struct { |
| 301 | | 303 | |
| 302 | var cache_hash_file = try self.files.addOne(); | 304 | var cache_hash_file = try self.files.addOne(); |
| 303 | cache_hash_file.path = try fs.path.resolve(self.alloc, &[_][]const u8{file_path}); | 305 | cache_hash_file.path = try fs.path.resolve(self.alloc, &[_][]const u8{file_path}); |
| | 306 | cache_hash_file.max_file_size = max_file_size_opt; |
| | 307 | cache_hash_file.contents = null; |
| 304 | | 308 | |
| 305 | const contents = try self.populate_file_hash_fetch(otherAlloc, cache_hash_file); | 309 | const contents = try self.populate_file_hash_fetch(otherAlloc, cache_hash_file); |
| 306 | | 310 | |