Using archiver.bulk & graceful-ncp over ncp to avoid EMFILE errors#123
Using archiver.bulk & graceful-ncp over ncp to avoid EMFILE errors#123adam-lynch merged 8 commits intomasterfrom
Conversation
As per the documentation, the `archive.bulk()` call promises to avoid EMFILE errors (too many open files).
Use `archive.bulk()` to avoid EMFILE errors
|
Oh wait, hold off... I just saw this in the "fs-extra": "git://github.com/adam-lynch/node-fs-extra#graceful-ncp", |
|
Ok, I've created a PR; jprichardson/node-fs-extra#95. We could wait until it's merged or else just merge and then change it back to using node-fs-extra from npm once it is merged. |
|
@felixSchl One of the tests were actually failing (see https://travis-ci.org/mllrsohn/node-webkit-builder/jobs/41839735#L245) but it wasn't failing the build because of #126. The issue was with |
|
@adam-lynch You know the codebase better than me at this point :) so feel free to merge this when you think it's right - I would however wait for the I have to check why we even need fs-extra ... |
|
@steffenmllr I think I'm going to go ahead and merge this later. We could be waiting forever on other people and it'll be a big benefit to merge (along with 64-bit support for 1.0.0). Instead of waiting on a PR, I can create another npm package which just makes sure node-fs-extra uses graceful-ncp instead of ncp. It's only a one line package and would be better than having a github branch as a dependency since it'll only be updated when node-fs-extra publish a new release, not whenever they commit to master. When the time comes, I'll switch the dependency to node-fs-extra instead if they merge my PR or if ncp merges my PR (AvianFlu/ncp#70), then I'll just close my node-fs-extra PR and revert our dependency to ncp instead of my graceful-ncp. Nothing much to worry about because my changes to all packages concerned are tiny, no real maintenance involved Long story short, I'll probably just merge this and it'll be fine 😄. |
Using archiver.bulk & graceful-ncp over ncp to avoid EMFILE errors
|
Thanks a lot @felixSchl. I'd appreciate if you could test master ( |
|
Nevermind what I said about the EMFILE error, it was just a typo in my stubbing of ncp in graceful-fs-extra. |
@steffenmllr, I'll leave this for you to merge
Thanks, @felixSchl.
Closes #92, #118