-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Simplify and enforce duplicate haste map errors #8002
Conversation
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.
Should this be considered a breaking change?
Probably, yes :) |
Let me clarify my "probably, yes"; although it's technically a breaking change, I do not expect anyone from being affected by this (no one has two So I think that we could still release as minor. |
@mjesun #2070 might make this a problem for general users as well, not only for those using haste, which is why I think this should be a breaking change and probably delayed until we're close to release a major. But we can do now instead, is adding a new option in |
I will use @rubennorte, you don't have to edit your comment to reflect what we just talked :D |
That would also be a breaking change but given it's change on an undocumented option I think we can just asumme it. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This PR changes the way duplicated mocks and haste names are reported. The current way allows to have multiple times the same name, but emits a warning. After two years of having the warning in, I can tell you no one looks at it; so this diff starts enforcing them to be unique.
I also took the opportunity to standardize and simplify error messaging, since it was nearly impossible to read.
Before:
After:
Tests were adjusted accordingly to reflect the new logging mechanisms.