| ... | @@ -459,9 +459,9 @@ pub const Manifest = struct { | ... | @@ -459,9 +459,9 @@ pub const Manifest = struct { |
| 459 | } | 459 | } |
| 460 | } | 460 | } |
| 461 | | 461 | |
| 462 | pub fn addDepFile(self: *Manifest, dir: fs.Dir, dep_file_basename: []const u8) !void { | 462 | pub fn addDepFile(self: *Manifest, dir: fs.Dir, dep_file_sub_path: []const u8) !void { |
| 463 | assert(self.manifest_file == null); | 463 | assert(self.manifest_file == null); |
| 464 | return self.addDepFileMaybePost(dir, dep_file_basename); | 464 | return self.addDepFileMaybePost(dir, dep_file_sub_path); |
| 465 | } | 465 | } |
| 466 | | 466 | |
| 467 | pub const HitError = error{ | 467 | pub const HitError = error{ |
| ... | @@ -1049,14 +1049,14 @@ pub const Manifest = struct { | ... | @@ -1049,14 +1049,14 @@ pub const Manifest = struct { |
| 1049 | self.hash.hasher.update(&new_file.bin_digest); | 1049 | self.hash.hasher.update(&new_file.bin_digest); |
| 1050 | } | 1050 | } |
| 1051 | | 1051 | |
| 1052 | pub fn addDepFilePost(self: *Manifest, dir: fs.Dir, dep_file_basename: []const u8) !void { | 1052 | pub fn addDepFilePost(self: *Manifest, dir: fs.Dir, dep_file_sub_path: []const u8) !void { |
| 1053 | assert(self.manifest_file != null); | 1053 | assert(self.manifest_file != null); |
| 1054 | return self.addDepFileMaybePost(dir, dep_file_basename); | 1054 | return self.addDepFileMaybePost(dir, dep_file_sub_path); |
| 1055 | } | 1055 | } |
| 1056 | | 1056 | |
| 1057 | fn addDepFileMaybePost(self: *Manifest, dir: fs.Dir, dep_file_basename: []const u8) !void { | 1057 | fn addDepFileMaybePost(self: *Manifest, dir: fs.Dir, dep_file_sub_path: []const u8) !void { |
| 1058 | const gpa = self.cache.gpa; | 1058 | const gpa = self.cache.gpa; |
| 1059 | const dep_file_contents = try dir.readFileAlloc(dep_file_basename, gpa, .limited(manifest_file_size_max)); | 1059 | const dep_file_contents = try dir.readFileAlloc(dep_file_sub_path, gpa, .limited(manifest_file_size_max)); |
| 1060 | defer gpa.free(dep_file_contents); | 1060 | defer gpa.free(dep_file_contents); |
| 1061 | | 1061 | |
| 1062 | var error_buf: std.ArrayListUnmanaged(u8) = .empty; | 1062 | var error_buf: std.ArrayListUnmanaged(u8) = .empty; |
| ... | @@ -1083,7 +1083,7 @@ pub const Manifest = struct { | ... | @@ -1083,7 +1083,7 @@ pub const Manifest = struct { |
| 1083 | }, | 1083 | }, |
| 1084 | else => |err| { | 1084 | else => |err| { |
| 1085 | try err.printError(gpa, &error_buf); | 1085 | try err.printError(gpa, &error_buf); |
| 1086 | log.err("failed parsing {s}: {s}", .{ dep_file_basename, error_buf.items }); | 1086 | log.err("failed parsing {s}: {s}", .{ dep_file_sub_path, error_buf.items }); |
| 1087 | return error.InvalidDepFile; | 1087 | return error.InvalidDepFile; |
| 1088 | }, | 1088 | }, |
| 1089 | } | 1089 | } |