diff --git a/src/install/lockfile/OverrideMap.zig b/src/install/lockfile/OverrideMap.zig index 2cde47edf8..674f5f68d1 100644 --- a/src/install/lockfile/OverrideMap.zig +++ b/src/install/lockfile/OverrideMap.zig @@ -892,7 +892,7 @@ pub fn parseFromResolutions( } const ResolutionSegments = struct { - segments: [8][]const u8 = undefined, + segments: [8][]const u8 = .{""} ** 8, count: usize = 0, last: []const u8 = "", overflow: bool = false, diff --git a/test/cli/install/migration/__snapshots__/pnpm-comprehensive.test.ts.snap b/test/cli/install/migration/__snapshots__/pnpm-comprehensive.test.ts.snap index 7e481f0f59..f8abd402c2 100644 --- a/test/cli/install/migration/__snapshots__/pnpm-comprehensive.test.ts.snap +++ b/test/cli/install/migration/__snapshots__/pnpm-comprehensive.test.ts.snap @@ -263,8 +263,8 @@ exports[`pnpm comprehensive migration tests pnpm with patches and overrides: pat "express@4.18.2": "patches/express@4.18.2.patch", }, "overrides": { - "mime-types": "2.1.33", "negotiator@>0.6.0": "0.6.2", + "mime-types": "2.1.33", }, "packages": { "accepts": ["accepts@1.3.8", "", { "dependencies": { "mime-types": "2.1.33", "negotiator": "0.6.2" } }, "sha512-acceptsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="], diff --git a/test/cli/install/migration/__snapshots__/yarn-lock-migration.test.ts.snap b/test/cli/install/migration/__snapshots__/yarn-lock-migration.test.ts.snap index a125e2f1d0..89428fd434 100644 --- a/test/cli/install/migration/__snapshots__/yarn-lock-migration.test.ts.snap +++ b/test/cli/install/migration/__snapshots__/yarn-lock-migration.test.ts.snap @@ -206,6 +206,9 @@ exports[`yarn.lock migration basic yarn.lock with resolutions: resolutions-yarn- }, }, "overrides": { + "webpack": { + "acorn": "8.11.2", + }, "acorn": "8.11.3", }, "packages": {