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

Filter out blacklisted addons before calling included hook #7857

Merged
merged 1 commit into from Jun 12, 2018

Conversation

dnachev
Copy link

@dnachev dnachev commented May 29, 2018

The ember-engines caches the host addons (the app.project.addons list) on the first addon hook callback, which is included. This is generally OK, except in the case when EmberApp blacklists some of the addons.

Because the list of the addons is actually filtered after the hook is called, ember-engines deduplication algorithm is using the incorrect list of parent addons, because it has cached the list on the first hook call - included). This leads to ember-engines deduplicating dependencies, which are not actually available in the app.

@Turbo87
Copy link
Member

Turbo87 commented Jun 11, 2018

this looks good to me. I've restarted the failing AppVeyor builds. Sorry for the long response time... 😞

@Turbo87 Turbo87 added the bug label Jun 11, 2018
@Turbo87 Turbo87 changed the title [BUGFIX] Filter out blacklisted addons before calling hooks Filter out blacklisted addons before calling included hook Jun 11, 2018
@rwjblue rwjblue merged commit b328588 into ember-cli:release Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants