is not checked out... bundle install does NOT fix help!

Viewed 52748
https://github.com/intridea/omniauth.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError)

So what do I do? bundle install works on development, but when I push and deploy to my production server. I get this error, even after running bundle install on my production server.

17 Answers

Ran into this problem after upgrading to ruby 2.7.0

Looks like maybe there has been changes to deprecate the use of the business company focused:github => to the actual software platform focused :git =>. Maybe better for easier code logic maintainability.

Change the following:

gem 'devise', :github => 'plataformatec/devise'  

to the following:

gem 'devise', :git => 'git://github.com/plataformatec/devise'

An alternative is you may still reference :github as your git_source at the top of your Gemfile and just reference to the Gems as normal like so:

source 'https://rubygems.org'                                                                                                                             
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
...
gem 'devise'

For anyone here in 2021, the accepted answer is outdated as --deployment flag is deprecated.

Use this instead:

bundle config set --local deployment 'true'

Restarting bash session helped for me

Another solution, that helped me when I was getting same issue while installing private gem from my Github repo, in Docker (my gems are in volume /gems):

# Add known host 
RUN mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts

RUN bundle config set path /gems # this fixes issue with private repos DON'T USE ENV BUNDLE_PATH /gems
RUN --mount=type=ssh bundle install

To forward SSH, build using this command:

docker build --ssh default .

Recently I got the error message on Circle CI:

#!/bin/bash -eo pipefail
bundle exec rails db:setup

https://github.com/randym/axlsx.git (at c8ac844@c8ac844) is not yet checked out. Run `bundle install` first.

Exited with code exit status 1
CircleCI received exit code 1

This error happened when gem dependencies can not be resolved. So I switched back to pre release version in my Gemfile to fix it

-gem 'axlsx', github: 'randym/axlsx', ref: 'c8ac844572b25fda358cc01d2104720c4c42f450'
+gem 'axlsx', '3.0.0.pre'

and run update to update the gem dependencies

bundle update axlsx
Related