fix(fs): overwrite symlink in restore cache
fix(fs): overwrite symlink in restore cache
In restore cache process, if there already exist a same link in dist folder, turbo will failed with an error:
error fetching from cache: error moving artifact from cache into XXXXX: symlink ../uuid/dist/bin/uuid XXXXX/dist/node_modules/.bin/uuid: file exists
This patch just remove already existed link.
@AielloChan is attempting to deploy a commit to the Vercel Team on Vercel.
A member of the Team first needs to authorize it.
Cache restoration is currently undergoing a bunch of work (cc @nathanhammond), would you mind including a testcase with this change so that we can verify that the behavior doesn't regress?
Sure, I added.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated |
|---|---|---|---|
| turbo-site | ✅ Ready (Inspect) | Visit Preview | Sep 27, 2022 at 8:40PM (UTC) |