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

[Meteor 3] Fix missing files when copying node modules to rebuild native deps #12535

Merged

Conversation

zodern
Copy link
Member

@zodern zodern commented Mar 3, 2023

The code for copying the node modules folders was converted to use for loops instead of forEach, but the returns were left which caused it to stop before it had copied all files.

This should fix #12530. The first time Meteor was run, it would save the isopacks to disk. The second time Meteor was run, it would try to rebuild any native deps, which involves copying part of the node_modules folder, rebuilding native deps, and then overwriting the original files with the copy. Due to the bug this PR fixes, the copy was missing files which would break the package.

I found it surprising that Meteor was rebuilding native deps here since it should have already ensured they were built correctly when writing the isopack. There might be another issue someplace here, or this something we can optimize in the future.

@Grubba27 Grubba27 merged commit ff69265 into release-3.0 Mar 6, 2023
1 of 4 checks passed
@StorytellerCZ StorytellerCZ added this to the Release 3.0 milestone Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants