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
Describe the bug C:\Windows\System32\tar.exe fails when an archive extraction needs to overwrite existing files with the read-only attribute. This creates problems in the cache action: actions/cache#198
To Reproduce
Trigger this GitHub workflow two times:
The cache action fails on the second run, with tar reporting "Can't unlink already-existing object" errors referring to the read-only files.
Expected behavior
On the second run, the cache action should restore from the key with no errors.
Additional context
The system tar is selected in preference to GNU tar, which works as expected when --force-local option is used. GNU tar is installed in the Windows virtual environment as part of the Git toolkit and its full path name is "C:\Program Files\Git\usr\bin\tar.exe".
Activity