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

bin/configure fails #1606

Open
andrewculver opened this issue Jul 14, 2024 · 5 comments
Open

bin/configure fails #1606

andrewculver opened this issue Jul 14, 2024 · 5 comments

Comments

@andrewculver
Copy link
Contributor

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 andrewculver changed the title bin/configure fails. bin/configure fails Jul 14, 2024
@andrewculver
Copy link
Contributor Author

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
Copy link
Contributor

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 added a commit that referenced this issue Jul 15, 2024
We were missing a `source` line which meant that the inline `Gemfile`
couldn't install anything. So if you didn't already have the required
gems installed it would fail.

Address the `colorizer` issue mentioned in #1606
jagthedrummer added a commit that referenced this issue Jul 15, 2024
* Add a source to the inline Gemfile for `bin/configure`

We were missing a `source` line which meant that the inline `Gemfile`
couldn't install anything. So if you didn't already have the required
gems installed it would fail.

Address the `colorizer` issue mentioned in #1606

* linter
@jagthedrummer
Copy link
Contributor

The colorize problem is fixed in #1610

@jagthedrummer
Copy link
Contributor

@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
Copy link

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.

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

3 participants