Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: error in windows "Error: EPERM: operation not permitted, unlink" #134

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

dinhphieu
Copy link

@dinhphieu dinhphieu commented Oct 23, 2024

Checklist

All items have to be completed before a PR is merged

  • Adhere to Contribution Guidelines
  • Updates to Decision Records considered?
  • Updates to documentation at flxbl-sfp Guide considered?
  • Tested changes?
  • Unit Tests new and existing passing locally?

@dinhphieu
Copy link
Author

Resolves #128 @azlam-abdulsalam

After some investigation, I found that the issue only occurs on Windows because unlink and rmdir operations are not atomic there

Refs:
isaacs/rimraf#102 (comment)
https://www.npmjs.com/package/rimraf (rimraf.windows and rimraf.moveRemove sections)
https://superuser.com/a/1796069

@azlam-abdulsalam azlam-abdulsalam added the bug Something isn't working label Oct 23, 2024
@azlam-abdulsalam
Copy link

Thanks @dinhphieu

@azlam-abdulsalam azlam-abdulsalam self-requested a review November 12, 2024 22:33
Copy link

@azlam-abdulsalam azlam-abdulsalam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all good!

@azlam-abdulsalam azlam-abdulsalam merged commit 357b118 into flxbl-io:main Nov 12, 2024
1 of 2 checks passed
richard-giraud pushed a commit to richard-giraud/sfp that referenced this pull request Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants