| ... | @@ -609,7 +609,7 @@ fn loadManifest(f: *Fetch, pkg_root: Cache.Path) RunError!void { | ... | @@ -609,7 +609,7 @@ fn loadManifest(f: *Fetch, pkg_root: Cache.Path) RunError!void { |
| 609 | ast.* = try std.zig.Ast.parse(arena, manifest_bytes, .zon); | 609 | ast.* = try std.zig.Ast.parse(arena, manifest_bytes, .zon); |
| 610 | | 610 | |
| 611 | if (ast.errors.len > 0) { | 611 | if (ast.errors.len > 0) { |
| 612 | const file_path = try std.fmt.allocPrint(arena, "{}" ++ Manifest.basename, .{pkg_root}); | 612 | const file_path = try std.fmt.allocPrint(arena, "{}" ++ fs.path.sep_str ++ Manifest.basename, .{pkg_root}); |
| 613 | try std.zig.putAstErrorsIntoBundle(arena, ast.*, file_path, eb); | 613 | try std.zig.putAstErrorsIntoBundle(arena, ast.*, file_path, eb); |
| 614 | return error.FetchFailed; | 614 | return error.FetchFailed; |
| 615 | } | 615 | } |
| ... | @@ -783,7 +783,7 @@ fn srcLoc( | ... | @@ -783,7 +783,7 @@ fn srcLoc( |
| 783 | const eb = &f.error_bundle; | 783 | const eb = &f.error_bundle; |
| 784 | const token_starts = ast.tokens.items(.start); | 784 | const token_starts = ast.tokens.items(.start); |
| 785 | const start_loc = ast.tokenLocation(0, tok); | 785 | const start_loc = ast.tokenLocation(0, tok); |
| 786 | const src_path = try eb.printString("{}" ++ Manifest.basename, .{f.parent_package_root}); | 786 | const src_path = try eb.printString("{}" ++ fs.path.sep_str ++ Manifest.basename, .{f.parent_package_root}); |
| 787 | const msg_off = 0; | 787 | const msg_off = 0; |
| 788 | return eb.addSourceLocation(.{ | 788 | return eb.addSourceLocation(.{ |
| 789 | .src_path = src_path, | 789 | .src_path = src_path, |