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
Error start the application after gems alphabetically sorted #8207
Comments
Yes, but that is stated in each gem's manifest. gem B is responsible for requiring gem A. I'd file a bug with |
I known require it, but a program don't raise an error because sorted gems A-Z only. |
We should consider sorting after removing all the |
Thank you! |
Future versions will sort ignoring |
My environment:
In the Gemfile:
I start the Puma server, my application working normally.
Now, I sort gems by alphabetically and Gemfile become:
I start the Puma, oops, it' error because gem 'active_admin-sortable_tree' need gem 'activeadmin' loaded.
In general, gem B depends on Gem A. If the order loaded change by RuboCop then it raises an error.
We can not be known anything about the order load gems depends on themself in an application.
The next version of Rubocop, please remove the method sort Gems by A-Z as below.
https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Bundler/OrderedGems
The text was updated successfully, but these errors were encountered: