diff --git a/lib/compiler/Maker.zig b/lib/compiler/Maker.zig index 743577b43f8b2d5ac8010a6ade2d5653c64014da..05ce0fe17e64c265e5c2e87226362308a770a9d0 100644 --- a/lib/compiler/Maker.zig +++ b/lib/compiler/Maker.zig @@ -1721,7 +1721,7 @@ fn cmdFetch(gpa: Allocator, graph: *Graph, args: []const []const u8) !void { .name_tok = 0, .lazy_status = .eager, .remote_package_root = undefined, - .parent_package_root = undefined, + .parent_package_root = if (build_root_initialized) .{ .root_dir = build_root.directory } else .cwd(), .parent_manifest_ast = null, .prog_node = root_prog_node, .job_queue = &job_queue,