turbo icon indicating copy to clipboard operation
turbo copied to clipboard

fix(fs): overwrite symlink in restore cache

Open AielloChan opened this issue 3 years ago • 1 comments

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 avatar Sep 20 '22 14:09 AielloChan

@AielloChan is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Sep 20 '22 14:09 vercel[bot]

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.

AielloChan avatar Sep 23 '22 03:09 AielloChan

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)

vercel[bot] avatar Sep 27 '22 20:09 vercel[bot]