bullet-train-co / bullet_train

The Open Source Ruby on Rails SaaS Template
MIT License
1.68k stars 269 forks source link

`bin/configure` fails #1606

Open andrewculver opened 4 months ago

andrewculver commented 4 months ago

Trying to spin up a project on a random machine and encountering the following failure:

andrewculver@Andrew-Culver-J9C23QCWHN xyz % bin/configure
rbenv: version `3.3.3' is not installed (set by /Users/andrewculver/Sites/xyz/.ruby-version)

In my mind, this is exactly the type of thing bin/configure should take care of?

andrewculver commented 4 months ago

Even after I install Ruby 3.3.3, I get the following error:

andrewculver@Andrew-Culver-J9C23QCWHN xyz % bin/configure
/Users/andrewculver/.rbenv/versions/3.3.3/lib/ruby/3.3.0/bundler/resolver.rb:336:in `raise_not_found!': Could not find gem 'colorize' in locally installed gems. (Bundler::GemNotFound)

I'm just following the instructions at https://github.com/bullet-train-co/bullet_train. 🤷‍♂️

jagthedrummer commented 4 months ago

I think the challenge to trying to install ruby is: Which method would we use?

There are several (many?) different runtime managers that various people like to use. As far as I can tell we've never tried to handle ruby installation for people. Not opposed to trying, but we need to identify how we'd do it. Personally I use asdf these days just to be able to have a single tool (instead of rbenv + nvm or rvm + nvm or whatever). Not sure if we want to go as far as having a recommended runtime manager.

@andrewculver what are your thoughts on that?

The problem about colorize should be pretty easy to fix.

jagthedrummer commented 4 months ago

The colorize problem is fixed in https://github.com/bullet-train-co/bullet_train/pull/1610

jagthedrummer commented 3 weeks ago

@andrewculver I'm still curious if you have any thoughts on how we should handle trying to install things for people. I think the only real way to do it would require standardizing on a runtime manager (like asdf) and kind of forcing people down that path. #1608 is a similar problem that would probably require a similar solution (whatever that solution may be).

BrettFraley commented 6 days ago

New user here checking out Bullet Train in Nov 2024 and having similar issues with latest Ruby version with Rails 8 latest installed. I'll figure it out, but found this issue and wanted to drop a note here.