Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support serveral install options,especially --force option can resolv… #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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