| ... | ... | @@ -951,6 +951,7 @@ pub const Manifest = struct { |
| 951 | 951 | /// will need to be recompiled if the imported file is changed. |
| 952 | 952 | pub fn addFilePostFetch(self: *Manifest, file_path: []const u8, max_file_size: usize) ![]const u8 { |
| 953 | 953 | assert(self.manifest_file != null); |
| 954 | assert(!std.fs.path.isAbsolute(file_path)); |
| 954 | 955 | |
| 955 | 956 | const gpa = self.cache.gpa; |
| 956 | 957 | const prefixed_path = try self.cache.findPrefix(file_path); |
| ... | ... | @@ -1008,6 +1009,7 @@ pub const Manifest = struct { |
| 1008 | 1009 | /// whether or not `prefixed_path.sub_path` should be kept. |
| 1009 | 1010 | pub fn addPrefixedPathPost(man: *Manifest, prefixed_path: PrefixedPath) !bool { |
| 1010 | 1011 | assert(man.manifest_file != null); |
| 1012 | assert(!std.fs.path.isAbsolute(prefixed_path.sub_path)); |
| 1011 | 1013 | const gpa = man.cache.gpa; |
| 1012 | 1014 | |
| 1013 | 1015 | const gop = try man.files.getOrPutAdapted(gpa, prefixed_path, FilesAdapter{}); |
| ... | ... | @@ -1039,6 +1041,7 @@ pub const Manifest = struct { |
| 1039 | 1041 | stat: File.Stat, |
| 1040 | 1042 | ) !void { |
| 1041 | 1043 | assert(self.manifest_file != null); |
| 1044 | assert(!std.fs.path.isAbsolute(file_path)); |
| 1042 | 1045 | const gpa = self.cache.gpa; |
| 1043 | 1046 | |
| 1044 | 1047 | const prefixed_path = try self.cache.findPrefix(file_path); |