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(build): #405 don't call included() twice #789

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

buschtoens
Copy link
Contributor

Fixes #405.

Fixes a bug where the included() hook of any addon listed in an engine's dependencies would be called twice.

See my comments in #405 for more details.

I have no clue, whether this is actually the correct fix, specifically with regards to EMBER_ENGINES_ADDON_DEDUPE introduced via #595. But it's working great for me.

@villander
Copy link
Member

Thanks, @buschtoens

Could you please add test coverage for this, and also covering the EMBER_ENGINES_ADDON_DEDUPE use case? I wouldn't like to merge something that could create another side effect

@villander
Copy link
Member

@rwjblue could you please verify this PR?

@rwjblue
Copy link
Member

rwjblue commented Feb 1, 2022

@brendenpalmer and I ran into this a bit ago, and it definitely seems like something we ought to try to address. The issue is that it isn't 100% clear that we don't want to call included once for each "lazy host".

@buschtoens - Have you thought of that?

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.

Engines' dependency addons are included more than once
3 participants