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

loading is not needed with zeitwerk autoloader #1243

Conversation

jrafanie
Copy link
Member

@jrafanie jrafanie commented Dec 4, 2023

This was only needed for classic autoloader. The core "freedom" patch made zeitwerk autoloader bypass the interlock anyway, so now that we're only supporting zeitwerk, this is no longer needed.

Co-dependency:
ManageIQ/manageiq#22801

Part of the rails 7 upgrade: ManageIQ/manageiq#22052

This was only needed for classic autoloader.  The core "freedom" patch made zeitwerk autoloader
bypass the interlock anyway, so now that we're only supporting zeitwerk, this is no longer
needed.

Co-dependency:
ManageIQ/manageiq#22801

Part of the rails 7 upgrade: ManageIQ/manageiq#22052
@jrafanie jrafanie force-pushed the drop_as_dependencies_interlock_with_classic_autoloader_gone branch from 37eb071 to 8885e1e Compare December 4, 2023 21:25
@miq-bot
Copy link
Member

miq-bot commented Dec 4, 2023

Checked commit jrafanie@8885e1e with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint
2 files checked, 2 offenses detected

lib/api/environment.rb

  • ❗ - Line 30, Col 29 - Performance/CollectionLiteralInLoop - Avoid immutable Array literals in loops. It is better to extract it into a local variable or a constant.
  • ❗ - Line 30, Col 29 - Style/PercentLiteralDelimiters - %w-literals should be delimited by [ and ].

@jrafanie jrafanie changed the title [WIP] loading is not needed with zeitwerk autoloader loading is not needed with zeitwerk autoloader Dec 4, 2023
@jrafanie jrafanie removed the wip label Dec 4, 2023
@Fryguy Fryguy self-assigned this Dec 6, 2023
@jrafanie
Copy link
Member Author

This is ready to go since we were already defaulting to zeitwerk on quinteros

@Fryguy Fryguy merged commit 83a495d into ManageIQ:master Dec 19, 2023
3 checks passed
@Fryguy
Copy link
Member

Fryguy commented Jan 5, 2024

Backported to quinteros in commit f3ab4b3.

commit f3ab4b3c2ed9f7359cd74ea706c690fa6e71d4df
Author: Jason Frey <[email protected]>
Date:   Tue Dec 19 14:33:24 2023 -0500

    Merge pull request #1243 from jrafanie/drop_as_dependencies_interlock_with_classic_autoloader_gone
    
    loading is not needed with zeitwerk autoloader
    
    (cherry picked from commit 83a495d4f5626bb46535b93bb5952a0764cf355a)

Fryguy added a commit that referenced this pull request Jan 5, 2024
…_with_classic_autoloader_gone

loading is not needed with zeitwerk autoloader

(cherry picked from commit 83a495d)
@jrafanie jrafanie deleted the drop_as_dependencies_interlock_with_classic_autoloader_gone branch January 31, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants