Rails Heroku - git failed to push master to hero - issue i18n

I am trying to execute git push heroku master.

The following error failed:

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

I have i18n in my gemfile.lock file. Does anyone know what to do? Thanks you

+4
source share
4 answers

This happens when the Gem author jerked a specific version of Gem that you are using. Indeed http://rubygems.org/gems/i18n/versions confirms this.

You will need to upgrade (downgrade) to the previous version, and then commit the new Gemfile.lock file and redistribute your application.

+1
source

In his gemfile.lockchange

i18n (0.6.10)

to

i18n (0.6.9)

, 0.6.10.

+6

, . 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))

, , ref Gemfile 0.6.9, , . .. 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
+1

, git clone repositary bundle install. :

i18n-0.6.10

Gemfile.lock bundle install ..!!

0

Source: https://habr.com/ru/post/1543157/


All Articles