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

Widen the node_modules exclude pattern when copying v2 addons #1068

Merged
merged 1 commit into from Jan 8, 2022

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Jan 8, 2022

When we encounter a v2 addon that has v1 addon as dependencies, we need to move it even though it doesn't need to be rewritten. Our code for doing that excludes node_modules, but we should also exclude inner nested node_modules.

This comes up when testing a v2 addon that nests its test-app inside itself using symlinked node_modules. Without this you encounter a symlink cycle that's hard to diagnose and only strikes on some OS / disk combinations.

When we encounter a v2 addon that has v1 addon as dependencies, we need to move it even tough it doesn't need to be rewritten. Our code for doing that excludes node_modules, but we should also exclude inner nested node_modules.

This comes up when testing a v2 addon that nests its test-app inside itself using symlinked node_modules. Without this you encounter a symlink cycle that's hard to diagnose and only strikes on some OS / disk combinations.
@ef4 ef4 added the bug Something isn't working label Jan 8, 2022
@ef4 ef4 merged commit 8c9e56a into master Jan 8, 2022
@ef4 ef4 deleted the exclude-inner-node-modules branch January 8, 2022 06:46
@ef4 ef4 changed the title exclude inner node modules Widen the node_modules exclude pattern when copying v2 addons Jan 8, 2022
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.

None yet

1 participant