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

Remove Spring and switch to Zeitwerk #2451

Merged
merged 1 commit into from
Dec 4, 2024
Merged

Conversation

mec
Copy link
Collaborator

@mec mec commented Dec 4, 2024

For an application of this size and the kind of hardware developers have
access to, Spring is not required, ahead of an update to Rails 7, which
does not include Spring by default, let's remove it here.

We also want to run the Zeitwerk autoloader ahead of Rails 7 and we only
appear to NOT be using it in the test environment, the reasoning for
which also appears to relate to Spring?!

The only Zeitwerk issue was in the GuidanceUrl spec, which was trying to
load it from a non-existent module - not sure how this was ever working,
but it is now!

For an application of this size and the kind of hardware developers have
access to, Spring is not required, ahead of an update to Rails 7, which
does not include Spring by default, let's remove it here.

We also want to run the Zeitwerk autoloader ahead of Rails 7 and we only
appear to NOT be using it in the test environment, the reasoning for
which also appears to relate to Spring?!

The only Zeitwerk issue was in the GuidanceUrl spec, which was trying to
load it from a non-existent module - not sure how this was ever working,
but it is now!
@mec mec force-pushed the chore/switch-to-zeitwerk branch from 1df82c9 to a5a824e Compare December 4, 2024 10:45
@mec mec marked this pull request as ready for review December 4, 2024 10:47
Copy link
Contributor

@benshimmin benshimmin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I heartily approve of removing Spring! 👍

@mec mec merged commit ac1fc9e into develop Dec 4, 2024
5 checks passed
@mec mec deleted the chore/switch-to-zeitwerk branch December 4, 2024 11:16
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.

2 participants