-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pacmak): occasional EISDIR failure (#948)
There was a race condition in capturing the output of `npm pack`. Ocassionally we would miss the output, not get a tarball name, combine the empty string with a directory, and then get an EISDIR error when trying to copy the tarball as a file (but giving it a directory name). This race has been in there forever, but it became easier to trigger since we started running a lot of `npm pack`s in parallel. The solution is to wait for a different event on the `ChildProcess` object.
- Loading branch information
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters