Skip to content

Commit

Permalink
fix(chore): try fix EBUSY problem in windows ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hardfist committed Sep 5, 2024
1 parent 976f5df commit 53845ab
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 105 deletions.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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]"
}
}
}
13 changes: 13 additions & 0 deletions patches/[email protected]
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')
Loading

0 comments on commit 53845ab

Please sign in to comment.