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

Only patch ember-cli-deprecation-workflow releases before 2.0.0 #900

Merged

Conversation

alexlafroscia
Copy link
Contributor

I ran into an error when trying out Embroider in my main Ember app.

The compat adapter for ember-cli-deprecation-workflow resolves an error with ember-debug-handlers-polyfill which is no longer present in version 2.0.0. Because it's not installed, Node is unable to resolve the location of the package.

We should opt out of the patch if the installed version is 2.0.0 or greater.

@alexlafroscia
Copy link
Contributor Author

CI failure due to timeout seems to be present on master as well 🙍‍♂️

@thoov
Copy link
Collaborator

thoov commented Jul 20, 2021

@alexlafroscia you can also leverage shouldApplyAdapter (#772) which will completely ignore the adapter altogether.

@alexlafroscia
Copy link
Contributor Author

alexlafroscia commented Jul 21, 2021

Ah, even better! I had looked around at the other compat adapters for something like this but didn't come across one. I'll solve it that way instead!

Edit: It doesn't seem like any compat adapters actually use this hook yet -- no wonder I didn't find it 😅

The `2.0.0` release of `ember-cli-deprecation-workflow` removes the package that required the compatibility adapter, so we can safely opt out of applying it if we're working with `2.0.0` or newer.
@rwjblue rwjblue added the bug Something isn't working label Jul 28, 2021
@rwjblue rwjblue merged commit c3d2629 into embroider-build:master Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants