summaryrefslogtreecommitdiff
path: root/lib/bundler/resolver.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-08-24 22:54:33 +0200
committergit <svn-admin@ruby-lang.org>2022-08-25 23:39:02 +0900
commitad8774f8e537a3ad73ce56bd12e75c85271f93a3 (patch)
tree0bb3a958751cd7f6d93b54919b7fb6375713076b /lib/bundler/resolver.rb
parentf5f81bb777bb1dbf8da3f976136733e65b026fef (diff)
[rubygems/rubygems] Fix another regression for sorbet
Recently a changed was introduced to update the resolver platforms after it has been created, in order to remove the "ruby" platform from it if it's to be removed from the lockfile. However, it did not update the `@resolving_only_for_ruby` instance variable in that case, so the resolver was not properly doing the right thing anymore. To fix this, I tweaked the code to restore not changing resolver platforms after the resolver has been instantiated. https://github.com/rubygems/rubygems/commit/8fbc30a1d0
Diffstat (limited to 'lib/bundler/resolver.rb')
-rw-r--r--lib/bundler/resolver.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/bundler/resolver.rb b/lib/bundler/resolver.rb
index e382319112..a74af45027 100644
--- a/lib/bundler/resolver.rb
+++ b/lib/bundler/resolver.rb
@@ -7,8 +7,6 @@ module Bundler
include GemHelpers
- attr_writer :platforms
-
# Figures out the best possible configuration of gems that satisfies
# the list of passed dependencies and any child dependencies without
# causing any gem activation errors.