GithubHelp home page GithubHelp logo

Rake bootstrap failure help about rainforest HOT 7 OPEN

mwoollard avatar mwoollard commented on July 26, 2024
Rake bootstrap failure help

from rainforest.

Comments (7)

icecrystal23 avatar icecrystal23 commented on July 26, 2024 1

I finally got rake bootstrap to complete with this specific setup:

  • ruby version 2.3.8 (kudos to rbenv)
  • gem install bundler -v 1.17.3
  • gem install rspec

And then rake bootstrap succeeded

I was getting failures with ruby version 2.5.3 and also with bundler 2.x. Not sure why I had to explicitly install rspec.

from rainforest.

segiddins avatar segiddins commented on July 26, 2024

Can you try running gem install bundler?

from rainforest.

mwoollard avatar mwoollard commented on July 26, 2024

Some progress, ran gem install bundler and also removed /usr/local/bin from head of PATH. Was then able to run $ rake bootstrap. However $ CocoaPods/bin/pod --help (or any other attempt to use the development version) gives error:

$ CocoaPods/bin/pod --help
Could not find rake-10.5.0 in any of the sources

Do I need make some further changes to PATH to locate rake-10.5.0 ?

Thanks!

from rainforest.

segiddins avatar segiddins commented on July 26, 2024

Odd, further changes shouldnt be necessary but it seems like your local ruby install is in a weird state.

from rainforest.

mfaani avatar mfaani commented on July 26, 2024

@icecrystal23 why 2.3.8? for example Specs's Gemfile is pointing to:

ruby '> 2.0.0'

from rainforest.

icecrystal23 avatar icecrystal23 commented on July 26, 2024

Not sure. It was likely just another ruby version I already had set up so I tried it and it worked. Or I saw it referenced somewhere in one of the tools and decided to give it a shot.

I find ruby versions to be quite finicky and even minor version updates can easily break things.

from rainforest.

mfaani avatar mfaani commented on July 26, 2024

@icecrystal23
Your setup helped better understand the whole Ruby setup. Yet I think your fix can no longer work 😕 :

See https://github.com/rails/rails/blob/master/activesupport/activesupport.gemspec#L12
and https://github.com/CocoaPods/Core/blob/master/cocoapods-core.gemspec#L22-L23

basically the current setup for the core gem has a dependency on activesupport which has a dependency on: s.required_ruby_version = ">= 2.5.0"

Among a few other errors I was getting and thought to dig deeper in the gemspec of Core. Ultimately I realized the ruby versions are never going to work.

Bootstrapping Core
[!] Some Rake tasks haven been disabled because the environment couldn’t be loaded. Be sure to run rake bootstrap first.
rake --no-search bootstrap
[!] Some Rake tasks haven been disabled because the environment couldn’t be loaded. Be sure to run rake bootstrap first.
Updating submodules...
/Users/mfaani908/.rbenv/versions/2.3.8/bin/bundle
Installing gems

Maybe I need to bump the ruby version to 2.5.0 instead of 2.3.8

Or I might have to abandon your setup and try again the original setup with no rbenv involvement. I had some errors with that, but circumvented them a bit as outlined here 🤔 🤔 🤔

This is all a huge/fun learning curve for someone who's never done any Ruby development, but I feel I'm super close to getting my setup right

EDIT:
The cocoapods-try repo was also failing. Because that also has a dependency on cocoapods-core: https://github.com/CocoaPods/cocoapods-try/blob/master/Gemfile#L8

rake boostrap builds with a development environment right?

from rainforest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.