Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Jan 27, 2022
Merged

Conversation

radar
Copy link
Collaborator

@radar radar commented Jan 26, 2022

Reverts #574

This was breaking the master build.

@jordan-brough
Copy link

@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
Copy link
Contributor

dvzrv commented Jan 27, 2022

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

@dvzrv
Copy link
Contributor

dvzrv commented Jan 27, 2022

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
Copy link
Collaborator Author

radar commented Jan 27, 2022

@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
Copy link
Contributor

dvzrv commented Jan 27, 2022

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 added a commit to opf/openproject that referenced this pull request Jan 28, 2022
1.9.0 was yanked and cannot be downloaded anymore. See ruby-i18n/i18n#602
cbliard added a commit to opf/openproject that referenced this pull request Jan 28, 2022
1.9.0 was yanked and cannot be downloaded anymore. See ruby-i18n/i18n#602
@kwisatz
Copy link

kwisatz commented Jan 30, 2022

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
Copy link
Collaborator Author

radar commented Jan 30, 2022 via email

@radar
Copy link
Collaborator Author

radar commented Jan 30, 2022 via email

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.

None yet

4 participants