summaryrefslogtreecommitdiff
path: root/lib/bundler/definition.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-21 20:53:36 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-26 11:46:07 +0200
commitb5766564fb6ad9c74c3b87ad6b2965f3b9095d08 (patch)
tree2a2ce7cca2ce4fea33c41385f0c31a203859face /lib/bundler/definition.rb
parente93bce3b206895a46b9fb5889c5f908fd29ad554 (diff)
downloadbundler-b5766564fb6ad9c74c3b87ad6b2965f3b9095d08.tar.gz
Revert "Add all platforms to lockfile by default"undo_auto_multiplatform
This reverts commit 3dc509e645abb497e4dc92a7c42be471ff87db0b.
Diffstat (limited to 'lib/bundler/definition.rb')
-rw-r--r--lib/bundler/definition.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index 3f5e8ce97b..01ee86a358 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -113,7 +113,7 @@ module Bundler
end
@unlocking ||= @unlock[:ruby] ||= (!@locked_ruby_version ^ !@ruby_version)
- add_platforms unless Bundler.frozen_bundle?
+ add_current_platform unless Bundler.frozen_bundle?
converge_path_sources_to_gemspec_sources
@path_changes = converge_paths
@@ -543,12 +543,6 @@ module Bundler
private
- def add_platforms
- (@dependencies.flat_map(&:expanded_platforms) + current_platforms).uniq.each do |platform|
- add_platform(platform)
- end
- end
-
def current_platforms
current_platform = Bundler.local_platform
[].tap do |platforms|