Skip to content

Conversation

@xx752690102
Copy link

support serveral install options,especially --force option can resolve gem that created before ruby3.0 can successfully installed in(above)ruby 3.0.
(ruby3.0 will check required_rubygems_version field which gems created before ruby3.0 does not has this field)

…e gem that created before ruby3.0 can successfully installed in(above)ruby 3.0.

(ruby3.0 will check required_rubygems_version field which gems created before ruby3.0 does not has this field)
@xx752690102
Copy link
Author

in ruby 3.0 and above, without --force option will throw error like below:
ERROR: While executing gem ... (NoMethodError)
undefined method satisfied_by?' for nil:NilClass /Users/pixie/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/resolver.rb:269:in requirement_satisfied_by?'
/Users/pixie/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/resolver/molinillo/lib/molinillo/delegates/specification_provider.rb:25:in block in requirement_satisfied_by?' /Users/pixie/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/resolver/molinillo/lib/molinillo/delegates/specification_provider.rb:70:in with_no_such_dependency_error_handling'
/Users/pixie/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/resolver/molinillo/lib/molinillo/delegates/specification_provider.rb:24:in requirement_satisfied_by?' /Users/pixie/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/resolver/molinillo/lib/molinillo/resolution.rb:672:in block in attempt_to_activate'
/Users/pixie/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/resolver/molinillo/lib/molinillo/resolution.rb:671:in select!' /Users/pixie/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/resolver/molinillo/lib/molinillo/resolution.rb:671:in attempt_to_activate'
/Users/pixie/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/resolver/molinillo/lib/molinillo/resolution.rb:254:in process_topmost_state' /Users/pixie/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/resolver/molinillo/lib/molinillo/resolution.rb:182:in resolve'
/Users/pixie/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/resolver/molinillo/lib/molinillo/resolver.rb:43:in `resolve'
/Users/pixie/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant