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

Disable mixin tracking when we do includes for probing #1019

Merged
merged 2 commits into from
Jun 29, 2022

Conversation

paracycle
Copy link
Member

Motivation

We do dynamic includes of any module that we encounter into an empty anonymous class, so that we can discover side effects of doing such includes. This is how DynamicMixinCompiler works. However, that means that our mixin tracker attributes those includes as mixin locations that it needs to consider, which is wrong.

Implementation

Added a means to disable mixin registration during certain blocks where we know that we should not record mixins, and used that in the main block of DynamicMixinCompiler.

Tests

Added a test that fails if we have not disabled mixin recording during DynamicMixinCompiler operation.

@paracycle paracycle requested a review from a team June 29, 2022 15:02
@paracycle paracycle merged commit 913c721 into main Jun 29, 2022
@paracycle paracycle deleted the uk-mixin-tracking-config branch June 29, 2022 17:21
@shopify-shipit shopify-shipit bot temporarily deployed to production July 7, 2022 17:53 Inactive
@shopify-shipit shopify-shipit bot temporarily deployed to 0-9-stable August 19, 2022 20:37 Inactive
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

2 participants