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

Can't install cocoapods-bazel #76

Open
Tyler-Keith-Thompson opened this issue Jul 27, 2022 · 3 comments
Open

Can't install cocoapods-bazel #76

Tyler-Keith-Thompson opened this issue Jul 27, 2022 · 3 comments

Comments

@Tyler-Keith-Thompson
Copy link

Screen Shot 2022-07-27 at 4 59 02 PM

When trying to install I receive an error:

ERROR:  While executing gem ... (NoMethodError)
    undefined method `request' for nil:NilClass

    [@failed_dep.dependency, @activated.request.dependency]
@thiagohmcruz
Copy link
Contributor

AFAIK this tool has been tested mostly with ruby 2.x so maybe there's some work required to support ruby 3.x. Found similar issues online, e.g., this and this.

You could try to downgrade your ruby version to check if that's what is happening here. If that's the case we probably need to see what is required to support ruby 3.x (i.e. what dependencies are broken on the new ruby), PRs are welcomed!

@chenxiao0228
Copy link
Collaborator

chenxiao0228 commented Feb 2, 2023

hit this when I was trying to upgrade our internal bundle.

I was having a hard time building ruby 2.x with Xcode 14 and Ventura. so I upgraded Ruby to 3.2.0. The stacktrace is like this

ERROR: While executing gem ... (NoMethodError) undefined method request' for nil:NilClass

[@failed_dep.dependency, @activated.request.dependency]
                                   ^^^^^^^^
ruby-install/lib/ruby/3.2.0/rubygems/resolver/conflict.rb:47:in `conflicting_dependencies'
ruby-install/lib/ruby/3.2.0/rubygems/exceptions.rb:61:in `conflicting_dependencies'
ruby-install/lib/ruby/3.2.0/rubygems/exceptions.rb:55:in `initialize'
ruby-install/lib/ruby/3.2.0/rubygems/resolver.rb:193:in `exception'
ruby-install/lib/ruby/3.2.0/rubygems/resolver.rb:193:in `raise'
ruby-install/lib/ruby/3.2.0/rubygems/resolver.rb:193:in `rescue in resolve'
ruby-install/lib/ruby/3.2.0/rubygems/resolver.rb:191:in `resolve'
ruby-install/lib/ruby/3.2.0/rubygems/request_set.rb:411:in `resolve'
ruby-install/lib/ruby/3.2.0/rubygems/dependency_installer.rb:333:in `resolve_dependencies'
ruby-install/lib/ruby/3.2.0/rubygems/commands/install_command.rb:205:in `install_gem'
ruby-install/lib/ruby/3.2.0/rubygems/commands/install_command.rb:230:in `block in install_gems'
ruby-install/lib/ruby/3.2.0/rubygems/commands/install_command.rb:223:in `each'
ruby-install/lib/ruby/3.2.0/rubygems/commands/install_command.rb:223:in `install_gems'
ruby-install/lib/ruby/3.2.0/rubygems/commands/install_command.rb:169:in `execute'
ruby-install/lib/ruby/3.2.0/rubygems/command.rb:323:in `invoke_with_build_args'
ruby-install/lib/ruby/3.2.0/rubygems/command_manager.rb:185:in `process_args'
ruby-install/lib/ruby/3.2.0/rubygems/command_manager.rb:149:in `run'
ruby-install/lib/ruby/3.2.0/rubygems/gem_runner.rb:51:in `run'
build/ruby-install/bin/gem:17:in `<main>'

`
seems like an edge case triggered by some dependency conflict.
going to look closer

@chenxiao0228
Copy link
Collaborator

This will be resolved by segiddins/starlark_compiler#10

For now we can workaround by gem build then install the main branch of startlark_compiler before installing cocoapods-bazel

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

No branches or pull requests

3 participants