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

Add extensions dir to Zeitwerk ignore list #184

Merged
merged 1 commit into from
Oct 17, 2022

Conversation

solnic
Copy link
Member

@solnic solnic commented Oct 17, 2022

I had to remove extensions from zeitwerk's ignored list and move PrettyPrint to Extensions::PrettyPrint so that the file structure matches namespaces (otherwise Zeitwerk complains, which is expected).

I did not fully track down which specific line caused the original issue, as in, I do not know what refers to Extensions that cause auto-loading of that module and not finding anything (since extensions was ignored in the loader config).

Anyhow, I reckon this should do it and it doesn't break anything else (famous last words 🤣)

So, actually, adding extensions.rb and extensions dir did the trick too.

Fixes #183

timon added a commit to timon/dry-failures that referenced this pull request Oct 17, 2022
@solnic solnic force-pushed the 183-fix-conflict-with-extensions-files branch from ffe0375 to cfc0bbe Compare October 17, 2022 14:04
@solnic solnic merged commit 34ba506 into main Oct 17, 2022
@solnic solnic deleted the 183-fix-conflict-with-extensions-files branch October 17, 2022 14:07
@solnic solnic changed the title Move PrettyPrint to Extensions namespace Add extensions dir to Zeitwerk ignore list Oct 17, 2022
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.

Release 1.5.0 breaks rails app boot with eager-loading
1 participant