You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cache restore failed with symlinks in Windows #120
I'm working with a monorepo containing several npm packages. The root npm package.json references children npm packages using relative path. When npm ci / npm i is executed, a symlink is created for each child package to the root node_modules folder.
I cached the root node_modules folder.
The first workflow run is good, here are the steps:
Cache restore miss
Run npm ci
Run npm build
Success
Cache save
The second run is no good:
Cache restore hit
Skip run npm ci
Run npm build
This is only happening in windows-latest environment. I tried to reproduce the issue locally and found out that tar did not recreate the symlinks.
Activity
joshmgross commentedon Dec 3, 2019
It's likely that we need the
--dereferenceflag when we exec tar on Windows. Do you have a sample repro that I can test this issue with?viceice commentedon Jan 8, 2020
Can this be the cause for our failed builds?
https://github.com/renovatebot/renovate/pull/5105/checks?check_run_id=379068534
9prady9 commentedon Jan 21, 2020
I face similar issues with symlinks when caching a folder with soft links - https://github.com/9prady9/arrayfire/runs/401235482
ordian commentedon May 13, 2020
@joshmgross as noted in actions/runner-images#572 (comment), this issue is blocking caching working properly for Rust projects on Windows. Is there any known workaround for this? Here is a repro.
joshmgross commentedon May 14, 2020
👋 Could someone confirm which Windows hosted runners they're using?
I'm curious if this issue is specific to GNU or BSD tar
9prady9 commentedon May 14, 2020
For mine trials, it was 2019 I think
mzabaluev commentedon May 26, 2020
@ordian and possibly others with the same symptoms:
I have no idea about the symlink issues discussed here, but your issue looks like #198 and it has a solution.
refactor: arbitrarily change cache key to see if that cures Windows c…
github-actions commentedon May 7, 2022
This issue is stale because it has been open for 200 days with no activity. Leave a comment to avoid closing this issue in 5 days.
github-actions commentedon May 17, 2022
This issue was closed because it has been inactive for 5 days since being marked as stale.