Describe the bug
This action seems to unable to restore cache to certain locations. In this case, that would be paths starting with C:\ on Windows runners.
Note: I'm using https://github.com/lukka/run-vcpkg which uses the @actions/cache.
To Reproduce
- Try to setup caching to/from a directory under
C:\... on Windows runners
- Verify that one run finishes successfully and saves the cache
- Start another run that would be able to restore from the previously saved cache
- Restoring cache fails with these errors:
C:/qbt_tools/vcpkg/: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg'
C:/qbt_tools/vcpkg/.artifactignore: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg\\.artifactignore'
C:/qbt_tools/vcpkg/.git/: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg\\.git'
C:/qbt_tools/vcpkg/.gitattributes: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg\\.gitattributes'
C:/qbt_tools/vcpkg/.github/: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg\\.github'
C:/qbt_tools/vcpkg/.gitignore: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg\\.gitignore'
C:/qbt_tools/vcpkg/.vcpkg-root: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg\\.vcpkg-root'
C:/qbt_tools/vcpkg/bootstrap-vcpkg.bat: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg\\bootstrap-vcpkg.bat'
C:/qbt_tools/vcpkg/bootstrap-vcpkg.sh: Can't create '\\\\?\\C:\\qbt_tools\\vcpkg\\bootstrap-vcpkg.sh'
...
... (same for all other vcpkg files)
...
tar.exe: Error exit delayed from previous errors.
restoreCache() failed: 'Error: Tar failed with error: The process 'C:\windows\System32\tar.exe' failed with exit code 1'.
Cache miss.
Expected behavior
Cache restoration succeeds.
Desktop (please complete the following information):
Windows Server 2019 runners
Additional context
More context can be found in the original report at lukka/run-vcpkg#25
Describe the bug
This action seems to unable to restore cache to certain locations. In this case, that would be paths starting with
C:\on Windows runners.Note: I'm using https://github.com/lukka/run-vcpkg which uses the
@actions/cache.To Reproduce
C:\...on Windows runnersExpected behavior
Cache restoration succeeds.
Desktop (please complete the following information):
Windows Server 2019 runners
Additional context
More context can be found in the original report at lukka/run-vcpkg#25