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

Gemfile infinite loop during rake bootstrap #53

Closed
rchinsio-gpsw opened this issue Dec 8, 2015 · 11 comments
Closed

Gemfile infinite loop during rake bootstrap #53

rchinsio-gpsw opened this issue Dec 8, 2015 · 11 comments

Comments

@rchinsio-gpsw
Copy link

I'm trying to get the development environment setup. I had the same issue as this #38 so I installed Ruby 2.1.2 and now I get an error about gems depending on each other and creating an infinite loop.

--------------------------------------------------------------------------------
Environment bootstrap
--------------------------------------------------------------------------------

Updating submodules
/Users/rchinsio/.rbenv/versions/2.1.2/bin/bundle
Installing gems

Bootstrapping cocoapods-deintegrate
rake aborted!
Bundler::GitError: Cannot use local override for CocoaPods at /Users/rchinsio/git/Rainforest/CocoaPods Bundler::GitError: Cannot use local override for CocoaPods at /Users/rchinsio/git/Rainforest/CocoaPods because :branch is not specified in Gemfile. Specify a branch or use `bundle config --delete` to remove the local override
/Users/rchinsio/git/Rainforest/cocoapods-deintegrate/Rakefile:2:in `<top (required)>'
(See full trace by running task with --trace)

Bootstrapping cocoapods-docs
rake --no-search bootstrap
/Users/rchinsio/.rbenv/versions/2.1.2/bin/bundle

--------------------------------------------------------------------------------
Installing gems
--------------------------------------------------------------------------------

bundle install
Fetching gem metadata from http://rubygems.org/............
Fetching version metadata from http://rubygems.org/...
Fetching dependency metadata from http://rubygems.org/..
Resolving dependencies...
Your Gemfile requires gems that depend on each other, creating an infinite loop. Please remove either gem 'cocoapods' or gem 'cocoapods-deintegrate' and try again.
rake aborted!
Command failed with status (21): [bundle install...]
/Users/rchinsio/git/Rainforest/cocoapods-docs/Rakefile:9:in `block in <top (required)>'
Tasks: TOP => bootstrap
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [rake --no-search bootstrap...]
/Users/rchinsio/git/Rainforest/Rakefile:94:in `block (3 levels) in <top (required)>'
/Users/rchinsio/git/Rainforest/Rakefile:92:in `chdir'
/Users/rchinsio/git/Rainforest/Rakefile:92:in `block (2 levels) in <top (required)>'
/Users/rchinsio/git/Rainforest/Rakefile:91:in `each'
/Users/rchinsio/git/Rainforest/Rakefile:91:in `block in <top (required)>'
/Users/rchinsio/git/Rainforest/Rakefile:53:in `block in <top (required)>'
Tasks: TOP => bootstrap_repos
(See full trace by running task with --trace)
@segiddins
Copy link
Member

The local override there is probably the issue

@rchinsio-gpsw
Copy link
Author

I didn't do anything other than git clone and rake bootstrap so that file is what came straight from git.

Am I supposed to be modifying the Gemfile?

@segiddins
Copy link
Member

Bundler::GitError: Cannot use local override for CocoaPods at /Users/rchinsio/git/Rainforest/CocoaPods Bundler::GitError: Cannot use local override for CocoaPods at /Users/rchinsio/git/Rainforest/CocoaPods because :branch is not specified in Gemfile. Specify a branch or use `bundle config --delete` to remove the local override
/Users/rchinsio/git/Rainforest/cocoapods-deintegrate/Rakefile:2:in `<top (required)>

Bundler is saying you have a local override setup

@rchinsio-gpsw
Copy link
Author

I removed ~/.bundle/config which had some generated cocoapods stuff from a previous Rainforest command?

Anyway, now if I run rake bootstrap I get a different error:

--------------------------------------------------------------------------------
Environment bootstrap
--------------------------------------------------------------------------------

Updating submodules
/Users/rchinsio/.rbenv/versions/2.1.2/bin/bundle
Installing gems

Bootstrapping cocoapods-deintegrate
rake aborted!
Bundler::GemNotFound: Could not find minitest-5.8.2 in any of the sources
/Users/rchinsio/git/Rainforest3/cocoapods-deintegrate/Rakefile:2:in `<top (required)>'
(See full trace by running task with --trace)

Bootstrapping cocoapods-docs
rake --no-search bootstrap
/Users/rchinsio/.rbenv/versions/2.1.2/bin/bundle

--------------------------------------------------------------------------------
Installing gems
--------------------------------------------------------------------------------

bundle install
Updating https://github.com/CocoaPods/CocoaPods.git
Updating https://github.com/CocoaPods/Core.git
Updating https://github.com/CocoaPods/CLAide.git
Fetching gem metadata from http://rubygems.org/............
Fetching version metadata from http://rubygems.org/...
Fetching dependency metadata from http://rubygems.org/..
Resolving dependencies...
Your Gemfile requires gems that depend on each other, creating an infinite loop. Please remove either gem 'cocoapods' or gem 'cocoapods-deintegrate' and try again.
rake aborted!
Command failed with status (21): [bundle install...]
/Users/rchinsio/git/Rainforest3/cocoapods-docs/Rakefile:9:in `block in <top (required)>'
Tasks: TOP => bootstrap
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [rake --no-search bootstrap...]
/Users/rchinsio/git/Rainforest3/Rakefile:94:in `block (3 levels) in <top (required)>'
/Users/rchinsio/git/Rainforest3/Rakefile:92:in `chdir'
/Users/rchinsio/git/Rainforest3/Rakefile:92:in `block (2 levels) in <top (required)>'
/Users/rchinsio/git/Rainforest3/Rakefile:91:in `each'
/Users/rchinsio/git/Rainforest3/Rakefile:91:in `block in <top (required)>'
/Users/rchinsio/git/Rainforest3/Rakefile:53:in `block in <top (required)>'
Tasks: TOP => bootstrap_repos
(See full trace by running task with --trace)

@igagis
Copy link

igagis commented Dec 8, 2015

same thing here

@protikhonov
Copy link

I have the same thing. Does anyone know how to fix this issue?

@amake
Copy link

amake commented Dec 11, 2015

I have similar problems, culminating in the same "infinite loop" message, even installing in a fresh VM. Log here:
http://pastebin.com/A0j9Cp3y

@segiddins
Copy link
Member

Thanks, we'll try and look into this!

@mr-fixit
Copy link

Still happening...

@arifken
Copy link

arifken commented Dec 22, 2015

I ran into this issue trying to include CocoaPods built from the master branch from a Gemfile. What I found as the culprit is: https://github.com/CocoaPods/cocoapods-deintegrate/blob/v0.2.1/cocoapods_deintegrate.gemspec#L19

This was fixed in CocoaPods/cocoapods-deintegrate@459ba6d but has not yet been released. I suspect that once it is integrated into a release of cocoapods-deintegrate, and that this new version is set in cocoapods.gemspec, that this error will no longer occur. thoughts?

@segiddins
Copy link
Member

This should all be resolved now.

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

7 participants