Visitar URL original
Revert "Fix missing requires of i18n/core_ext/hash" by radar · Pull Request #602 · ruby-i18n/i18n · GitHub
Skip to content

Revert "Fix missing requires of i18n/core_ext/hash" - #602

Merged
radar merged 1 commit into
masterfrom
revert-574-master
Jan 27, 2022
Merged

radar merged 1 commit into
masterfrom
revert-574-master

Conversation

@radar

@radar radar commented Jan 26, 2022

Copy link
Copy Markdown
Collaborator

Reverts #574

This was breaking the master build.

@jordan-brough

Copy link
Copy Markdown

@radar are you planning to release this as v1.9.1? And possibly yank v1.9.0? The latter seems broken to me:

$ gem install i18n
Fetching i18n-1.9.0.gem
Successfully installed i18n-1.9.0
1 gem installed

$ irb
001 > require 'i18n'
=> true
002 > I18n::Backend::Chain
<.../ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `require': cannot load such file -- i18n/core_ext/hash (LoadError)

I noticed b/c we tried to update i18n in our app and it caused the above exception.

@dvzrv

dvzrv commented Jan 27, 2022

Copy link
Copy Markdown
Contributor

An update would be highly appreciated, as I can not build (and test) this when attempting to create the package on Arch Linux.

@dvzrv

dvzrv commented Jan 27, 2022

Copy link
Copy Markdown
Contributor

Out of general curiosity: How did this not make all tests in CI fail since August and more specifically when that commit was added via pull request in #574? 🤔

archlinux-github pushed a commit to archlinux/svntogit-community that referenced this pull request Jan 27, 2022
Add upstream patch to remove broken imports:
ruby-i18n/i18n#602
Add upstream patch to remove unused pry gem:
ruby-i18n/i18n#608
Simplify quoting in file.
Use check() to run tests (finally).
Various style fixes and simplifications.

git-svn-id: file:///srv/repos/svn-community/svn@1117463 9fca08f4-af9d-4005-b8df-a31f2cc04f65
archlinux-github pushed a commit to archlinux/svntogit-community that referenced this pull request Jan 27, 2022
Add upstream patch to remove broken imports:
ruby-i18n/i18n#602
Add upstream patch to remove unused pry gem:
ruby-i18n/i18n#608
Simplify quoting in file.
Use check() to run tests (finally).
Various style fixes and simplifications.

git-svn-id: file:///srv/repos/svn-community/svn@1117463 9fca08f4-af9d-4005-b8df-a31f2cc04f65
@radar

radar commented Jan 27, 2022 •

Copy link
Copy Markdown
Collaborator Author

@dvzrv Please be aware that I am the sole maintainer and located in Australia. When you posted your comment, the local time was 6:27am. The PR you're pointing to was created in August, but was only merged ~22hrs ago.

@jordan-brough I can yank 1.9.0 so that it's uninstallable, after I release a 1.9.1.

@radar
radar merged commit f80e96a into master Jan 27, 2022
@radar
radar deleted the revert-574-master branch January 27, 2022 20:54
@dvzrv

dvzrv commented Jan 27, 2022

Copy link
Copy Markdown
Contributor

Please be aware that I am the sole maintainer and located in Australia. When you posted your comment, the local time was 6:27am. The PR you're pointing to was created in August, but was only merged ~22hrs ago.

Ah good point! Didn't notice that :)
I have applied it for the package on Arch Linux. Thanks for merging! ❤️

tachyons added a commit to CircuitVerse/CircuitVerse that referenced this pull request Jan 28, 2022
cbliard referenced this pull request in opf/openproject Jan 28, 2022
cbliard referenced this pull request in opf/openproject Jan 28, 2022
@kwisatz

kwisatz commented Jan 30, 2022

Copy link
Copy Markdown

How is #574 supposed to be resolved in environments that exhibit this problem. E.g. in one of our decidim installations, we do see the same problem:

decidim@marklar:~/decidim$ bundle exec rails db:migrate --trace                                            
** Invoke db:migrate (first_time)                                                                                  
** Invoke db:load_config (first_time)                                                                              ** Invoke environment (first_time)
** Execute environment                                                                                             rails aborted!      
NameError: uninitialized constant I18n::HashRefinements                                                            /home/decidim/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/bundler/gems/decidim-module-term_customizer-0e823f4f768f/li
b/decidim/term_customizer/i18n_backend.rb:9:in `<class:I18nBackend>' 
[…]

@radar

radar commented Jan 30, 2022 via email

Copy link
Copy Markdown
Collaborator Author

@radar

radar commented Jan 30, 2022 via email

Copy link
Copy Markdown
Collaborator Author

thibaudgg added a commit to electric-feel/i18n-backend-side_by_side that referenced this pull request Mar 20, 2022
This upgrades the logic to support the I18n 1.10.0 release, that was
broking with issue like:

```
LoadError: cannot load such file -- i18n/core_ext/hash
```

or
```
NameError: uninitialized constant I18n::HashRefinements
```

The I18n internal hash structure also changed sightly, so this fix
accomodates that.

Deprecated Ruby versions (< 2.7) are also removed for good measure.

Related I18n issue:
- ruby-i18n/i18n#602
thibaudgg added a commit to electric-feel/i18n-backend-side_by_side that referenced this pull request Mar 20, 2022
This upgrades the logic to support the I18n 1.10.0 release, that was
broking with issue like:

```
LoadError: cannot load such file -- i18n/core_ext/hash
```

or
```
NameError: uninitialized constant I18n::HashRefinements
```

The I18n internal hash structure also changed sightly, so this fix
accomodates that.

Deprecated Ruby versions (< 2.7) are also removed for good measure.

Related I18n issue:
- ruby-i18n/i18n#602
thibaudgg added a commit to electric-feel/i18n-backend-side_by_side that referenced this pull request Mar 20, 2022
This upgrades the logic to support the I18n 1.10.0 release, that was
broking with issue like:

```
LoadError: cannot load such file -- i18n/core_ext/hash
```

or
```
NameError: uninitialized constant I18n::HashRefinements
```

The I18n internal hash structure also changed sightly, so this fix
accomodates that.

Deprecated Ruby versions (< 2.7) are also removed for good measure.

Related I18n issue:
- ruby-i18n/i18n#602
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants