Open codemasher opened 1 year ago
Hmm, on my local machine:
D:\Users\cmb>ver
Microsoft Windows [Version 10.0.19043.2130]
D:\Users\cmb>tar --version
bsdtar 3.5.2 - libarchive 3.5.2 zlib/1.2.5.f-ipp
So apparently, Microsoft ships bsdtar as tar.exe, while we currently ship tar 1.32 and could update to 1.34 at best. I have some doubts that this will resolve the issue. An option might be not to ship tar.exe at all, or to do the same aliasing (we currently ship bsdtar 3.3.3, but could update to 3.6.1). The former might cause issues for those relying on tar (maybe using an older Windows, or requiring original tar); the latter looks generally doubtful to me. :(
Wait, now that you mention it, there is another tar.exe
in C:\Program Files\Git\usr\bin
:
The cache action will use GNU tar instead of bsd tar on Windows. This should work on all Github Hosted runners as it is. For self-hosted runners, please ensure you have GNU tar and zstd installed.
/ #__
The included
tar.exe
causes actions/cache to break on theWindows-2022
runner in case it is added to the path. As a temp fix, i renamed it during the workflow, but updatingtar.exe
(and perhaps the other binaries) is advised.