bullet-train-co / bullet_train

The Open Source Ruby on Rails SaaS Template
MIT License
1.62k stars 251 forks source link

`bin/configure` fails #1606

Open andrewculver opened 1 month ago

andrewculver commented 1 month 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 1 month 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 1 month 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 1 month ago

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