From 08604b7363dd53c050dc17faace0a0cb1bd40b19 Mon Sep 17 00:00:00 2001 From: Dylan Conway Date: Wed, 12 Nov 2025 19:21:20 -0800 Subject: [PATCH] Update src/install/lockfile/Package.zig Co-authored-by: taylor.fish --- src/install/lockfile/Package.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install/lockfile/Package.zig b/src/install/lockfile/Package.zig index d3d93dea21..95977c8aba 100644 --- a/src/install/lockfile/Package.zig +++ b/src/install/lockfile/Package.zig @@ -1589,7 +1589,7 @@ pub fn Package(comptime SemverIntType: type) type { var nohoist_patterns: bun.collections.ArrayListDefault([]const u8) = try .initCapacity(nohoist_arr.items.len); - for (nohoist_arr.items.slice()) |nohoist_item| { + for (nohoist_arr.items.slice()) |*nohoist_item| { if (!nohoist_item.isString()) { try log.addError(source, nohoist_item.loc, "Expected a string pattern"); return error.InvalidPackageJSON;