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

Use fs-extra instead of ncp to avoid race condition #19

Merged
merged 1 commit into from
Mar 4, 2018
Merged

Conversation

dfreeman
Copy link
Collaborator

@dfreeman dfreeman commented Mar 3, 2018

I've been hitting an issue where large files were being committed to my deploy branch before they were completely copied, and after hunting around for a forgotten promise return in my own code, eventually found my way to this ncp issue. It looks like there hasn't been much activity on that project for a while, and there are a number of similar issues sitting open.

Since we're already using fs-extra here, I dropped ncp in favor of just using the copy implementation there (which I believe was originally based on ncp, but has continued to be maintained).

@dfreeman dfreeman requested a review from ef4 March 3, 2018 23:17
@dfreeman
Copy link
Collaborator Author

dfreeman commented Mar 3, 2018

I should add that with this change, the project I was consistently getting broken deploys with before has successfully deployed several times in a row now.

@ef4 ef4 merged commit cf6578f into master Mar 4, 2018
@ef4
Copy link
Owner

ef4 commented Mar 4, 2018

Nice work. Released in 1.3.2.

@dfreeman
Copy link
Collaborator Author

dfreeman commented Mar 4, 2018

Thank you!

@dfreeman dfreeman deleted the remove-ncp branch March 17, 2018 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants