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

rake bootstrap fails with different errors #89

Open
mfaani opened this issue Dec 29, 2020 · 4 comments
Open

rake bootstrap fails with different errors #89

mfaani opened this issue Dec 29, 2020 · 4 comments

Comments

@mfaani
Copy link
Contributor

mfaani commented Dec 29, 2020

I already looked here and the solution provided by @icecrystal23 didn't work for me or perhaps I couldn't figure it out.

First attempt at rake bootstrap

The very first I run rake bootstrap time I get:

Bootstrapping Cork
rake --no-search bootstrap
/usr/local/bin/bundle

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

bundle install
Fetching gem metadata from https://rubygems.org/.........
Your bundle is locked to codecov (0.1.14), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of
codecov (0.1.14) has removed it. You'll need to update your bundle to a version other than codecov (0.1.14) that hasn't been removed in order to install.
rake aborted!
Command failed with status (7): [bundle install...]
/Users/prohoney/Dev/learning/r3/Rainforest/Cork/Rakefile:9:in `block in <top (required)>'
/Library/Ruby/Gems/2.6.0/gems/rake-12.3.3/exe/rake:27: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...]

I got no other errors. So I changed directory to /Cork and ran bundle update codecov.

Ran rake bootstrap again after fixing Cork

This time I get a bunch of other errors.

Bootstrapping cocoapods-deintegrate
rake aborted!
Bundler::GemNotFound: Could not find rake-10.4.2 in any of the sources
/Library/Ruby/Gems/2.6.0/gems/bundler-1.17.3/lib/bundler/spec_set.rb:91:in `block in materialize'
/Library/Ruby/Gems/2.6.0/gems/bundler-1.17.3/lib/bundler/spec_set.rb:85:in `map!'
/Library/Ruby/Gems/2.6.0/gems/bundler-1.17.3/lib/bundler/spec_set.rb:85:in `materialize'
/Library/Ruby/Gems/2.6.0/gems/bundler-1.17.3/lib/bundler/definition.rb:170:in `specs'
/Library/Ruby/Gems/2.6.0/gems/bundler-1.17.3/lib/bundler/definition.rb:237:in `specs_for'
/Library/Ruby/Gems/2.6.0/gems/bundler-1.17.3/lib/bundler/definition.rb:226:in `requested_specs'
/Library/Ruby/Gems/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:108:in `block in definition_method'
/Library/Ruby/Gems/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:20:in `setup'
/Library/Ruby/Gems/2.6.0/gems/bundler-1.17.3/lib/bundler.rb:107:in `setup'
/Library/Ruby/Gems/2.6.0/gems/bundler-1.17.3/lib/bundler/setup.rb:20:in `<top (required)>'
/Users/prohoney/Dev/learning/r3/Rainforest/cocoapods-deintegrate/Rakefile:2:in `<top (required)>'
/Library/Ruby/Gems/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
(See full trace by running task with --trace)

I get same error for:

Bootstrapping cocoapods-stats
rake aborted!
Bundler::GemNotFound: Could not find rake-10.4.2 in any of the sources

When I run gem list I get:

rake (12.3.3, 12.3.2, 10.5.0, 10.4.2)

Additionally what's odd is that when bootstrapping cocoapods-docs succeeds with the SAME rake version i.e. I see:

Bootstrapping cocoapods-docs
rake --no-search bootstrap
/usr/local/bin/bundle

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

bundle install
Fetching gem metadata from http://rubygems.org/.........
Fetching https://github.com/CocoaPods/CLAide.git
Fetching https://github.com/CocoaPods/Core.git
Fetching https://github.com/CocoaPods/CocoaPods.git
Fetching rake 10.4.2
.
.
.

I get exact same error for cocoapods-stats.
I get exact same error for CocoaPods with the only difference that it's expecting that I have rake 10.5.0

I tried changing directory to each of the above projects and running bundle install for them. That only helped me to make CocoaPods/bin/pod --help working.

Ran rake bootstrap again after running bundle install for other gems:

I got the following errors:

Bootstrapping cocoapods-deintegrate
rake aborted!
Gem::LoadError: You have already activated rake 12.3.3, but your Gemfile requires rake 10.4.2. Prepending `bundle exec` to your command may solve this

&&

Bootstrapping cocoapods-stats
[!] Some Rake tasks haven been disabled because the environment couldn’t be loaded. Be sure to run `rake bootstrap` first.

&&

Bootstrapping CocoaPods
[!] Some Rake tasks haven been disabled because the environment couldn’t be loaded. Be sure to run `rake bootstrap` first or use the VERBOSE environment variable to see errors.
rake --no-search bootstrap
[!] Some Rake tasks haven been disabled because the environment couldn’t be loaded. Be sure to run `rake bootstrap` first or use the VERBOSE environment variable to see errors.

Is rake bootstrap pulling int the latest? Should My Gemfile.lock match with the Gemfile.lock from the cocoapods-deintegrate repo?

Here's what I'm getting:

GIT
  remote: https://github.com/CocoaPods/CocoaPods.git
  revision: 6309df9ab3aa3aa4d287fa2de2776d752ca37ba9
  specs:
    cocoapods (1.3.1)
      activesupport (>= 4.0.2, < 5)
      claide (>= 1.0.2, < 2.0)
      cocoapods-core (= 1.3.1)
      cocoapods-deintegrate (= 1.0.4)
      cocoapods-downloader (>= 1.1.3, < 2.0)
      cocoapods-plugins (>= 1.0.0, < 2.0)
      cocoapods-search (>= 1.0.0, < 2.0)
      cocoapods-stats (>= 1.0.0, < 2.0)
      cocoapods-trunk (>= 1.2.0, < 2.0)
      cocoapods-try (>= 1.1.0, < 2.0)
      colored2 (~> 3.1)
      escape (~> 0.0.4)
      fourflusher (~> 2.0.1)
      gh_inspector (~> 1.0)
      molinillo (~> 0.6.1)
      nap (~> 1.0)
      ruby-macho (~> 1.1)
      xcodeproj (>= 1.5.1, < 2.0)

PATH
  remote: .
  specs:
    cocoapods-deintegrate (1.0.4)

GEM
  remote: https://rubygems.org/
  specs:
    CFPropertyList (2.3.5)
    activesupport (4.2.9)
      i18n (~> 0.7)
      minitest (~> 5.1)
      thread_safe (~> 0.3, >= 0.3.4)
      tzinfo (~> 1.1)
    ast (2.1.0)
    astrolabe (1.3.1)
      parser (~> 2.2)
    bacon (1.2.0)
    claide (1.0.2)
    cocoapods-core (1.3.1)
      activesupport (>= 4.0.2, < 6)
      fuzzy_match (~> 2.0.4)
      nap (~> 1.0)
    cocoapods-downloader (1.1.3)
    cocoapods-plugins (1.0.0)
      nap
    cocoapods-search (1.0.0)
    cocoapods-stats (1.0.0)
    cocoapods-trunk (1.2.0)
      nap (>= 0.8, < 2.0)
      netrc (= 0.7.8)
    cocoapods-try (1.1.0)
    colored2 (3.1.2)
    escape (0.0.4)
    fourflusher (2.0.1)
    fuzzy_match (2.0.4)
    gh_inspector (1.0.3)
    i18n (0.8.6)
    metaclass (0.0.4)
    minitest (5.10.3)
    mocha (1.1.0)
      metaclass (~> 0.0.1)
    mocha-on-bacon (0.2.2)
      mocha (>= 0.13.0)
    molinillo (0.6.2)
    nanaimo (0.2.3)
    nap (1.1.0)
    netrc (0.7.8)
    parser (2.2.3.0)
      ast (>= 1.1, < 3.0)
    powerpack (0.1.1)
    prettybacon (0.0.2)
      bacon (~> 1.2)
    rainbow (2.0.0)
    rake (10.4.2)
    rubocop (0.34.2)
      astrolabe (~> 1.3)
      parser (>= 2.2.2.5, < 3.0)
      powerpack (~> 0.1)
      rainbow (>= 1.99.1, < 3.0)
      ruby-progressbar (~> 1.4)
    ruby-macho (1.1.0)
    ruby-progressbar (1.7.5)
    thread_safe (0.3.6)
    tzinfo (1.2.3)
      thread_safe (~> 0.1)
    xcodeproj (1.5.1)
      CFPropertyList (~> 2.3.3)
      claide (>= 1.0.2, < 2.0)
      colored2 (~> 3.1)
      nanaimo (~> 0.2.3)

PLATFORMS
  ruby

DEPENDENCIES
  bacon
  cocoapods!
  cocoapods-deintegrate!
  mocha
  mocha-on-bacon
  prettybacon
  rake
  rubocop

BUNDLED WITH
   1.16.1

I'm learning Ruby, bundler, rbenv, rake as I go along and feel like I'm going in circles for the past few days trying to fix this 😞

Any thoughts on what to do?

Setup

macOS: 10.15.4

$ ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]

$ bundle -v
Bundler version 2.2.3 // but I see bundler `Using bundler 1.17.3` and `Using bundler 2.2.3` in the outputs of my `rake bootstrap`

$ gem list
...
bundler (2.2.3, 2.2.2, 2.1.4, 1.17.3, default: 1.17.2)
rake (12.3.3, 12.3.2, 10.5.0, 10.4.2)  

developer: newbie


FWIW I'm trying to contribute by bringing a new attribute to the podspec, my understanding is that I need this all to work, but if there's another way/shortcut I'd be happy to take it at this post while also trying to resolve this...

@mfaani
Copy link
Contributor Author

mfaani commented Dec 29, 2020

FWIW I made an important edit by include the Gemfile.lock I get...which is different from the Gemfile.lock available from here https://github.com/CocoaPods/CocoaPods/blob/master/Gemfile.lock

@dnkoutso
Copy link
Contributor

@prohoney you dont need to use Rainforest to contribute, just fork https://github.com/CocoaPods/CocoaPods and make a PR from there.

@mfaani
Copy link
Contributor Author

mfaani commented Dec 29, 2020

@dnkoutso Thanks. I'm confused. Then why is this page suggesting to use Rainforest? https://guides.cocoapods.org/contributing/dev-environment.html?

@dnkoutso
Copy link
Contributor

that probably needs updating to be honest.

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

2 participants