Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Has Rails 5 a dependency on Git?

We migrated our app from Rails 4 to Rails 5. We run it inside Docker. On our host system we of course have the git binaries, but not inside Docker. Running Puma inside Docker will give this error message, and I would like to get rid of it:

bin/rails: No such file or directory - git

Rspec will give this error message:

/usr/local/bundle/bin/rspec: No such file or directory - git

What gem has the dependency on git? Or is it one of the core Rails gems and should I just ignore the error message?

like image 835
Dirk de Kok Avatar asked Sep 09 '17 21:09

Dirk de Kok


1 Answers

Bundler has an optional dependency on git.

As described here, you can import gems directly from a git repository.

Check your Gemfile to see if any of your dependencies are installing from git. If none are, one of the gems you're installing probably is.

like image 60
LightBender Avatar answered Sep 25 '22 00:09

LightBender