-
-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(chore): try fix EBUSY problem in windows ci
- Loading branch information
Showing
3 changed files
with
128 additions
and
105 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,5 +80,10 @@ | |
"webpack-cli": "5.1.4", | ||
"zx": "7.2.3" | ||
}, | ||
"packageManager": "[email protected]" | ||
"packageManager": "[email protected]", | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"[email protected]": "patches/[email protected]" | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/graceful-fs.js b/graceful-fs.js | ||
index 8d5b89e4fa7fdbaebf58556cc044d2a912bce5de..d09757f19e32ba534453832abb8afe05ebaff94d 100644 | ||
--- a/graceful-fs.js | ||
+++ b/graceful-fs.js | ||
@@ -179,7 +179,7 @@ function patch (fs) { | ||
|
||
function go$copyFile (src, dest, flags, cb, startTime) { | ||
return fs$copyFile(src, dest, flags, function (err) { | ||
- if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) | ||
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE' || err.code === 'EBUSY')) | ||
enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()]) | ||
else { | ||
if (typeof cb === 'function') |
Oops, something went wrong.