Skip to content

fix(rename-overwrite): handle EBUSY error code#216

Merged
zkochan merged 1 commit intozkochan:mainfrom
anthochamp:fix-rename-overwrite-ebusy
May 16, 2025
Merged

fix(rename-overwrite): handle EBUSY error code#216
zkochan merged 1 commit intozkochan:mainfrom
anthochamp:fix-rename-overwrite-ebusy

Conversation

@anthochamp
Copy link
Copy Markdown
Contributor

When using rename-overwrite in Windows, EBUSY might be raised by the underlying OS which should trigger a retry the same way it is done for EACCESS/EPERM.

Context:

We're using pnpm on a large project and getting EBUSY error on CI (GitLab, Windows Server runners).

We traced back the problem to the call to renameOverwrite from the sync or async versions of forceSymlink in the symlink-dir library.

A similar issue has already been solved in pnpm.

@zkochan zkochan merged commit 055d2a3 into zkochan:main May 16, 2025
0 of 15 checks passed
@Gadzy
Copy link
Copy Markdown

Gadzy commented Jun 2, 2025

@zkochan Thanks for accepting my @anthochamp's PR.
I can see that you published a patch version 6.0.3 of rename-overwrite – now available in pnpm 10.11.1 if I'm correct – but there's no mention of it in the CHANGELOG. Any reason why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants