Code Monkey home page Code Monkey logo

Comments (3)

adamstegman avatar adamstegman commented on June 2, 2024 1

@maths22 did #55 solve your issue? I ask because a couple folks on our team are still running into this error, even on v0.2.2.

Updating the .../Gemfile_next.lock
Fetching gem metadata from https: //rubygems.org/.......
Could not find gem 'Ruby (= 2.7.7)' in Bootboot plugin Ruby source.

The source contains the following gems matching 'Ruby':
  * Ruby-3.0.5

from bootboot.

Skipants avatar Skipants commented on June 2, 2024 1

I see it as well.

Our Gemfile has the following:

plugin('bootboot', '~> 0.2')
Plugin.send(:load_plugin, 'bootboot') if Plugin.installed?('bootboot')

# Rails
if %w[1 true].include?(ENV['DEPENDENCIES_NEXT'])
  enable_dual_booting if Plugin.installed?('bootboot')
  ruby('3.2.1')
  gem 'rails', '~> 7.0.4'
else
  ruby('3.1.3')
  gem 'rails', '~> 6.1.6'
end

When I run bundle the first time around on Ruby 3.1.3 I get the error:

Could not find gem 'Ruby (= 3.1.3)' in Bootboot plugin Ruby source.

The source contains the following gems matching 'Ruby':
  * Ruby-3.2.1

On the second pass there's no error but Gemfile_next.lock is not updated. I have to manually change ruby to ruby-3.2.1 and do DEPENDENCIES_NEXT=1 bundle

Here's my bundler env:

Bundler       2.3.26
  Platforms   ruby, arm64-darwin-21
Ruby          3.1.3p185 (2022-11-24 revision 1a6b16756e0ba6b95ab71a441357ed5484e33498) [arm64-darwin-21]
  Full Path   /Users/andrewszczepanski/.rbenv/versions/3.1.3/bin/ruby
  Config Dir  /Users/andrewszczepanski/.rbenv/versions/3.1.3/etc
RubyGems      3.3.26
  Gem Home    /Users/andrewszczepanski/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0
  Gem Path    /Users/andrewszczepanski/.gem/ruby/3.1.0:/Users/andrewszczepanski/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0
  User Home   /Users/andrewszczepanski
  User Path   /Users/andrewszczepanski/.gem/ruby/3.1.0
  Bin Dir     /Users/andrewszczepanski/.rbenv/versions/3.1.3/bin
Tools
  Git         2.38.1
  RVM         not installed
  rbenv       rbenv 1.2.0
  chruby      not installed

I tried to clone bootboot and use the plugin locally so I could catch this and reproduce, but no luck there. Maybe something with bundler caching something? That's my best guess right now. Going to continue trying locally and see if I can isolate it when I get a chance.

from bootboot.

rafaelfranca avatar rafaelfranca commented on June 2, 2024

Thank you for the issue. The problem is probably in this file and how we try to detect the ruby version. Do you want to take a look on how to fix it?

from bootboot.

Related Issues (18)

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.