Skip to content

Commit 2c25685

Browse files
authored
Retry fs.rmSync for Windows (#448)
1 parent 12afe81 commit 2c25685

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/installer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ async function winInstallOM(version: VersionType, bit: string): Promise<void> {
267267
)
268268

269269
// Clean up
270-
fs.rmSync('tmp', {recursive: true})
270+
fs.rmSync('tmp', { recursive: true, force: true, maxRetries: 10 })
271271
}
272272

273273
/**

0 commit comments

Comments
 (0)