Gem file with git remote crash when clicking on a hero

I have the following line in my gemfile:

gem 'client_side_validations', :git => "git@github.com:Dakuan/client_side_validations.git", :branch => "master", ref: '2245b4174ffd4b400d999cb5a2b6dccc0289eb67' 

The repo that he points to is publicly available, and I can simply install / upgrade packages locally. When I try to click on Heroku, I get the following error:

  Fetching git@github.com:Dakuan/client_side_validations.git Host key verification failed. fatal: The remote end hung up unexpectedly Git error: command `git clone 'git@github.com:Dakuan/client_side_validations.git' "/tmp/build_1xa9f06n4k1cu/vendor/bundle/ruby/1.9.1/cache/bundler/git/client_side_validations-56a04875baabb67b5f8c192c6c6743df476fd90f" --bare --no-hardlinks` in directory /tmp/build_1xa9f06n4k1cu has failed. 

! ! Failed to set gems through the Bundler. ! ! Heroku push rejected, failed to compile Ruby / rails application

Anyone have any ideas on what's going on here?

+54
git ruby ruby-on-rails heroku bundler
Jul 19 2018-12-12T00:
source share
2 answers

Use this GitHub url instead: git://github.com/Dakuan/client_side_validations.git

URL git@github.com:… is a rewritable version of SSH that requires authentication using the SSH key associated with a GitHub account that has write access to the repository.

The git://github.com/… url git://github.com/… is a read-only public version.

Since the gem you are using is in the public GitHub repository, you can also use this shortcut in your Gemfile:

 gem 'client_side_validations', :github => 'Dakuan/client_side_validations' 

See the Bundler Git documentation for more information.

+148
Jul 19 '12 at 10:25
source share

The late second answer, when I came across some confusing exit from Heroku build logs that stopped me for a long time.

If there are several Gemsub gems in your Gemfile and one of them is unavailable (in my case, I accidentally pointed to a personal repo), build logs give an error, for example Username not found or Repository not found for all Github gems - even those available.

0
Nov 24 '17 at 18:35
source share



All Articles