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 usage of dependencySatisfies with a peerDependency #794

Merged
merged 1 commit into from
Mar 4, 2022

Conversation

anehx
Copy link
Contributor

@anehx anehx commented Jan 17, 2022

This package uses dependencySatisfies of @embroider/macros which is
only reliable if a peerDependency for the package exists. If not, the
macro checks for a dependency in the ember-engines package when a
monorepo structure is used. This behaviour happens since embroider
v0.50.1 which includes an important fix for monorepos:
embroider-build/embroider#1070

@anehx
Copy link
Contributor Author

anehx commented Jan 17, 2022

Similar fix in ember-render-modifiers for reference: emberjs/ember-render-modifiers#58

@anehx
Copy link
Contributor Author

anehx commented Jan 18, 2022

How can we get this merged and released? This is blocking a lot of my pipelines..

@rwjblue
Copy link
Member

rwjblue commented Jan 18, 2022

I approved the CI run, but it seems that it got cancelled; I'm restarting it

@SergeAstapov
Copy link
Contributor

@rwjblue probably it cancels 3.x tests because release/beta get fail too fast at build time because of ember-auto-import v2/webpack miss which is another level of effort

@@ -86,7 +86,7 @@
"ember-addon"
],
"dependencies": {
"@embroider/macros": "^0.43.5",
"@embroider/macros": "^0.50.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

@anehx @embroider/macros is now 1.0.0 so we should be able to do just "@embroider/macros": "^1.0.0"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@anehx
Copy link
Contributor Author

anehx commented Jan 21, 2022

This is a major issue for me, can I do anything to help getting this released?

This package uses `dependencySatisfies` of `@embroider/macros` which is
only reliable if a `peerDependency` for the package exists. If not, the
macro checks for a dependency in the `ember-engines` package when a
monorepo structure is used. This behaviour happens since embroider
v0.50.1 which includes an important fix for monorepos:
embroider-build/embroider#1070
@rwjblue rwjblue added the bug label Mar 4, 2022
@rwjblue rwjblue merged commit 4d8a760 into ember-engines:master Mar 4, 2022
@anehx anehx deleted the fix-dependency-satisfies branch May 3, 2022 11:58
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

4 participants