55

gemfileに次の行があります。

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

それが指しているリポジトリは公開されており、バンドルのインストール/更新をローカルで問題なく実行できます。Herokuにプッシュしようとすると、次のエラーが発生します。

   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.

!!Bundler経由でgemをインストールできませんでした。!!Herokuプッシュが拒否され、Ruby/railsアプリのコンパイルに失敗しました

ここで何が起こっているのか、誰かアイデアがありますか?

4

2 に答える 2

152
于 2012-07-19T10:25:07.060 に答える
0

A late second answer, as I ran into some confusing output from Heroku's build logs which stumped me for a while.

If you have multiple Github hosted gems in your Gemfile, and one of them is inaccessible (in my case, I had accidentally pointed to a private repo of mine), the build logs throw an error like Username not found or Repository not found for all the Github hosted gems - even those that are available.

于 2017-11-24T18:35:33.717 に答える