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 missing dry/core/equalizer requires #418

Merged
merged 1 commit into from
Feb 16, 2021

Conversation

timriley
Copy link
Member

@timriley timriley commented Feb 15, 2021

Putting these in any file where we refer to Dry::Equalizer should prevent undefined method 'Equalizer' for Dry:Module occurring, regardless of the order of requires.

@solnic @flash-gordon Is there any reason these weren't here before? We get the error above today in CI when upgrading a work project to 1.5.0.

Putting these in any file where we refer to Dry::Equalizer should prevent “undefined method `Equalizer' for Dry:Module” occurring, regardless of the order of requires.
@timriley timriley requested a review from solnic as a code owner February 15, 2021 02:56
@solnic
Copy link
Member

solnic commented Feb 15, 2021

@solnic @flash-gordon Is there any reason these weren't here before?

no, this was missed by an accident and now it's been revealed due to moving to dry-core

Copy link
Member

@flash-gordon flash-gordon left a comment

Choose a reason for hiding this comment

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

I am wondering why it worked before. @timriley how do you require dry-types?

@timriley timriley merged commit 09e2f61 into master Feb 16, 2021
@timriley timriley deleted the add-missing-requires-for-equalizer branch February 16, 2021 11:18
@timriley
Copy link
Member Author

Thanks folks :) Am releasing this as 1.5.1 now. I confirmed it fixed our build issue earlier today. I'll check back to work out how we're loading dry-types tomorrow. It's within a Rails app.

@solnic
Copy link
Member

solnic commented Feb 17, 2021

@timriley FWIW - I don't think this was anything unexpected, it just happened that in your case files were loaded previously in such an order that the equalizer happened to be already loaded before loading dry-types.

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.

3 participants