Skip to content

fix: handle EEXIST in mkdir for OneDrive-synced .git/info on Windows#1284

Open
0xSkybreaker wants to merge 1 commit into
XiaomiMiMo:mainfrom
0xSkybreaker:pr/issue-721-eexist-onedrive
Open

fix: handle EEXIST in mkdir for OneDrive-synced .git/info on Windows#1284
0xSkybreaker wants to merge 1 commit into
XiaomiMiMo:mainfrom
0xSkybreaker:pr/issue-721-eexist-onedrive

Conversation

@0xSkybreaker

Copy link
Copy Markdown

On Windows, mkdir with {recursive: true} throws EEXIST when the target directory has the ReadOnly NTFS attribute (commonly set by OneDrive on synced folders). This is a known libuv/Node.js issue (nodejs#43994).

Catch and suppress EEXIST in setupProjectIdEnvironment so MiMo Code can start in OneDrive-synced Git repositories.

Closes: #721

On Windows, mkdir with {recursive: true} throws EEXIST when the
target directory has the ReadOnly NTFS attribute (commonly set
by OneDrive on synced folders). This is a known libuv/Node.js
issue (nodejs#43994).

Catch and suppress EEXIST in setupProjectIdEnvironment so MiMo
Code can start in OneDrive-synced Git repositories.

Closes: XiaomiMiMo#721
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.

EEXIST: file already exists, mkdir '.git/info' on Windows with OneDrive-synced projects

1 participant