Skip to content

ManifestRegistrar uses load instead of require#286

Merged
timriley merged 1 commit intodry-rb:mainfrom
alassek:manifest-reloading
Jul 29, 2025
Merged

ManifestRegistrar uses load instead of require#286
timriley merged 1 commit intodry-rb:mainfrom
alassek:manifest-reloading

Conversation

@alassek
Copy link
Copy Markdown
Contributor

@alassek alassek commented Jul 17, 2025

This is a bug that is caused by the interaction between dry-system and dry-rails.

Dry::Rails rebuilds the Container from scratch on every reload, which resets all the keys. Since ManifestRegistrar was using require, this reload would not register the keys as expected.

This is a bug that is caused by the interaction between dry-system and
dry-rails.

Dry::Rails rebuilds the Container from scratch on every reload, which
resets all the keys. Since ManifestRegistrar was using `require`, this
reload would not register the keys as expected.
@timriley
Copy link
Copy Markdown
Member

@alassek Nice work, thank you for hunting this down! And bonus points for "simulacrum" ;)

I'll merge this now and cut a patch release.

@timriley timriley merged commit 9757fc4 into dry-rb:main Jul 29, 2025
7 checks passed
@timriley
Copy link
Copy Markdown
Member

Released as 1.2.3!

@alassek alassek deleted the manifest-reloading branch August 8, 2025 02:14
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