-
Notifications
You must be signed in to change notification settings - Fork 99
Issue a warning if we detect a .js/.ts file collision #1046
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
Conversation
also issue happens if both files is way to escape issue:
|
I don't think this is correct. Addons should never have |
Nothing in that thread indicates an issue when there were two conflicting If you can provide a reproduction where a nondeterministic build results from only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. Had one question just for my own understanding!
Just tried it and it detected collisions:
This is awesome, thank you so much!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
This has been released in v3.1.3. |
Can this warning be treated as an error during build? It would be nice to fail the build in case of a collision because otherwise proceeding with the collision (if missed) may result in significant harm. |
This PR will cause a warning to be emitted if we detect the situation described in #780. Because of exactly the situation we're detecting, we can't tell where the two conflicting files are coming from, but in most cases it will be apparent from context (e.g. the host app overriding a service from a particular addon).
Trying to describe the full situation and its possible ramifications would produce a giant wall of text in the terminal output, but the link in the warning points to #780, which has some good context and also links out to additional issues, like the upstream one in
broccoli-persistent-filter
.