Skip to content

Commit

Permalink
[rubygems/rubygems] Neither --force flag or inline mode should mand…
Browse files Browse the repository at this point in the history
…ate a remote resolution

rubygems/rubygems@50dd93e217
  • Loading branch information
deivid-rodriguez authored and matzbot committed May 24, 2024
1 parent eef125f commit 6a7e4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler/installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def install_in_parallel(size, standalone, force = false)
def resolve_if_needed(options)
@definition.prefer_local! if options["prefer-local"]

if options["local"] || (!options["force"] && !Bundler.settings[:inline] && @definition.no_resolve_needed? && !@definition.missing_specs?)
if options["local"] || (@definition.no_resolve_needed? && !@definition.missing_specs?)
@definition.resolve_with_cache!
false
else
Expand Down

0 comments on commit 6a7e4c4

Please sign in to comment.