Commit 02e5c12
committed
fix(arborist): retry bin-links on Windows EPERM during linked strategy install
On Windows, antivirus and search indexer can transiently lock files,
causing write-file-atomic's fs.rename to fail with EPERM during the
bin-linking phase. The linked strategy amplifies this by writing many
store entries in parallel.
Add retry with backoff (up to 5 attempts) for EPERM/EACCES/EBUSY
errors in #createBinLinks, Windows only.1 parent 4426411 commit 02e5c12
1 file changed
Lines changed: 25 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
| 384 | + | |
391 | 385 | | |
392 | 386 | | |
393 | 387 | | |
394 | 388 | | |
395 | 389 | | |
396 | 390 | | |
397 | 391 | | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
398 | 416 | | |
0 commit comments