Skip to content

Commit

Permalink
deep copy of object
Browse files Browse the repository at this point in the history
  • Loading branch information
sachin-sandhu committed May 22, 2024
1 parent 1bef4de commit a18c850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundler/helpers/v2/lib/functions/lockfile_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def build_definition(dependencies_to_unlock)
# mutate the unlocked gems array.
# @gems_to_unlock = {}
@gems_to_unlock = @unlock.dup
unlocked = defn.instance_variable_get(:@unlock).fetch(:gems)
unlocked = defn.instance_variable_get(:@gems_to_unlock).fetch(:gems)
must_not_unlock = defn.dependencies.map { |x| x.name.to_s } -
dependencies_to_unlock
unlocked.reject! { |n| must_not_unlock.include?(n) }
Expand Down

0 comments on commit a18c850

Please sign in to comment.