Skip to content

Commit

Permalink
[rubygems/rubygems] Note about why we don't fix lockfile dependencies…
Browse files Browse the repository at this point in the history
… backed by installed specs

rubygems/rubygems@6fa94b5d72
  • Loading branch information
deivid-rodriguez authored and matzbot committed Nov 6, 2024
1 parent 40a2e8e commit c79d236
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/bundler/lazy_specification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ def __materialize__(candidates, fallback_to_non_installable: Bundler.frozen_bund
if search.nil? && fallback_to_non_installable
search = candidates.last
elsif search && search.full_name == full_name
# We don't validate locally installed dependencies but accept what's in
# the lockfile instead for performance, since loading locally installed
# dependencies would mean evaluating all gemspecs, which would affect
# `bundler/setup` performance
if search.is_a?(StubSpecification)
search.dependencies = dependencies
elsif !source.is_a?(Source::Path) && search.runtime_dependencies.sort != dependencies.sort
Expand Down

0 comments on commit c79d236

Please sign in to comment.