| ... | ... | @@ -1011,17 +1011,16 @@ pub const Manifest = struct { |
| 1011 | 1011 | } |
| 1012 | 1012 | |
| 1013 | 1013 | /// Like `addFilePost` but when the file contents have already been loaded from disk. |
| 1014 | | /// On success, cache takes ownership of `resolved_path`. |
| 1015 | 1014 | pub fn addFilePostContents( |
| 1016 | 1015 | self: *Manifest, |
| 1017 | | resolved_path: []u8, |
| 1016 | file_path: []const u8, |
| 1018 | 1017 | bytes: []const u8, |
| 1019 | 1018 | stat: File.Stat, |
| 1020 | 1019 | ) !void { |
| 1021 | 1020 | assert(self.manifest_file != null); |
| 1022 | 1021 | const gpa = self.cache.gpa; |
| 1023 | 1022 | |
| 1024 | | const prefixed_path = try self.cache.findPrefixResolved(resolved_path); |
| 1023 | const prefixed_path = try self.cache.findPrefix(file_path); |
| 1025 | 1024 | errdefer gpa.free(prefixed_path.sub_path); |
| 1026 | 1025 | |
| 1027 | 1026 | const gop = try self.files.getOrPutAdapted(gpa, prefixed_path, FilesAdapter{}); |