Rails Heroku-无法git推送Heroku主机-i18n问题

Rails Heroku-无法git推送Heroku主机-i18n问题,heroku,ruby-on-rails-4,Heroku,Ruby On Rails 4,我想推希罗库大师 它失败,出现以下错误: Could not find i18n-0.6.10 in any of the sources ! ! Failed to install gems via Bundler. ! ! Push rejected, failed to compile Ruby app 我的gemfile.lock文件中有i18n。有人知道该怎么做吗?谢谢当Gem作者删除了您正在使用的Gem的特定版本时,就会出现这种情况。确实证实了这一点 您需

我想推希罗库大师

它失败,出现以下错误:

Could not find i18n-0.6.10 in any of the sources
 !
 !     Failed to install gems via Bundler.
 !

 !     Push rejected, failed to compile Ruby app

我的gemfile.lock文件中有i18n。有人知道该怎么做吗?谢谢

当Gem作者删除了您正在使用的Gem的特定版本时,就会出现这种情况。确实证实了这一点


您需要更新(降级)到以前的版本,然后提交新的Gemfile.lock并重新部署应用程序。

Gemfile.lock中更改

i18n (0.6.10)


正如John Beynon提到的,目前还没有0.6.10的版本。

最好知道它是从哪里来的。我的Gemfile.lock具有以下内容

$grep i18n Gemfile.lock 
    i18n (~> 0.6, >= 0.6.9)
    i18n (~> 0.5)
  i18n (0.6.10)
在颠倒依赖关系之后,它显示了这一点。有人能解释为什么会有0.6.10吗

$ gem dependency i18n --reverse-dependencies
Gem i18n-0.6.9
  activesupport (>= 3.0.0, development)
  mocha (>= 0, development)
  sqlite3 (>= 0, development)
  test_declarative (>= 0, development)
  Used by
    activesupport-4.1.1 (i18n (>= 0.6.9, ~> 0.6))
    activesupport-4.0.2 (i18n (>= 0.6.4, ~> 0.6))
    faker-1.1.2 (i18n (~> 0.5))
    rails-i18n-4.0.1 (i18n (~> 0.6))

Gem i18n-0.6.10
  Used by
    activesupport-4.1.1 (i18n (>= 0.6.9, ~> 0.6))
    activesupport-4.0.2 (i18n (>= 0.6.4, ~> 0.6))
    faker-1.1.2 (i18n (~> 0.5))
    rails-i18n-4.0.1 (i18n (~> 0.6))
我没有更改锁文件,而是将Gemfile中的ref绑定到0.6.9,执行bundle更新,然后提交并推送。同样的解决方案。。但是现在Gemfile.lock更能反映我的Gemfile

gem 'i18n', '0.6.9' # added to Gemfile
bundle update i18n
git commit -am 'updated Gemfile ref for i18n heroku push bug'
git push heroku master

当我
git clone repositary
并尝试
bundle安装时,我遇到了同样的问题。我得到了一个错误:

Could not find i18n-0.6.10 in any of the sources
 !
 !     Failed to install gems via Bundler.
 !

 !     Push rejected, failed to compile Ruby app
在任何来源中都找不到i18n-0.6.10

然后我删除
Gemfile.lock
,然后再次尝试
bundle安装
,它的效果就像charm一样