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(gatsby): use moveSync() for renaming redux tmp cache dir (#22999) #23005

Closed
wants to merge 1 commit into from

Conversation

drmats
Copy link

@drmats drmats commented Apr 10, 2020

Description

Using fs.renameSync(oldpath, newpath) throws EXDEV: cross-device link not permitted error when oldpath and newpath are not on the same mounted filesystem. moveSync() from fs-extra package addresses this.

This patch uses it to rename redux cache directory.

Related Issues

Fixes #22999

@pvdz
Copy link
Contributor

pvdz commented Apr 11, 2020

Thanks for your PR. Sorry for causing this trouble.
The tests were broken (yarn jest) because they're mocking the fs. I've had to create a new PR to amend the test fix. I'll go get the green signal on that and get it merged and published asap.

@pvdz
Copy link
Contributor

pvdz commented Apr 11, 2020

Closing this in favor of #23029
(Normally I'd ask for a followup fix but I kinda want this fixed sooner than later.)

@pvdz pvdz closed this Apr 11, 2020
@pvdz
Copy link
Contributor

pvdz commented Apr 11, 2020

This was published in [email protected]
If the problem persists please let me know. Thanks again!

@drmats
Copy link
Author

drmats commented Apr 11, 2020

All good 👍
Maybe this also fixed #22562 ?

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.

gatsby v2.20.16 causes warn Error persisting state: EXDEV: cross-device link not permitted, rename
2 participants