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

Fix incorrect type in ManifestRegistrar#finalize! #235

Merged
merged 2 commits into from
Jun 15, 2022

Conversation

alassek
Copy link
Contributor

@alassek alassek commented Jun 13, 2022

#finalize! is sending the basename directly to #call, which expects a Dry::System::Identifier.

This means that if you configure a registrations_dir, putting any file in that directory will lead to an exception during finalization.

This appears to have been introduced during #181

@alassek alassek requested a review from solnic as a code owner June 13, 2022 20:09
@alassek alassek force-pushed the fix-manifest-registrar branch from 9737bc6 to 29787a9 Compare June 13, 2022 20:11
Copy link
Member

@solnic solnic left a comment

Choose a reason for hiding this comment

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

Thanks for addressing this. Do you think you could add a corresponding test too? 🙏🏻

@alassek
Copy link
Contributor Author

alassek commented Jun 14, 2022

Sure, do you have any thoughts about the Zeitwerk failures here? I don't think they're related to my changes but I can look into it.

alassek added 2 commits June 14, 2022 13:37
`#finalize!` is sending the basename directly to `#call`, which expects
a Dry::System::Identifier.

This means that if you configure a `registrations_dir`, putting any file
in that directory will lead to an exception during finalization.

This appears to have been introduced during dry-rb#181
This is using a private interface that changed in 2.6

We probably want to support older versions for a while, so I'm
supporting both.
@alassek alassek force-pushed the fix-manifest-registrar branch from 29787a9 to 9266d0e Compare June 14, 2022 18:37
@alassek
Copy link
Contributor Author

alassek commented Jun 14, 2022

I added a test to the integration spec that triggers the bug. Also fixed the Zeitwerk failures due to a private interface change.

@solnic solnic merged commit 066c676 into dry-rb:main Jun 15, 2022
@solnic
Copy link
Member

solnic commented Jun 15, 2022

Thank you ❤️

@alassek alassek deleted the fix-manifest-registrar branch June 17, 2022 02:04
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