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
Select GNU tar for caching if available on hosted runners #552
On hosted runners, tar.exe is available in several locations locations:
BSD tar - C:\Windows\System32\tar.exe (Windows 2019 only)
GNU tar - C:\Program Files\Git\usr\bin\tar.exe
GNU tar - C:\msys64\usr\bin\tar.exe
Caching correctly selects GNU tar on Windows 2016 runners, since (2) shows up on the PATH. Windows 2019 runners use BSD tar because (1) shows up first on the PATH. (3) does not appear on the system PATH so it is never selected.
Given the problems with bsdtar, it seems we should either ensure GNU tar appears first on the system PATH or improve the lookup logic in the caching module to find GNU tar. Right now, a workaround is to explicitly set the system PATH:
- name: Use GNU Tar from Msys
if: ${{ runner.os == 'Windows' }}
run: |
echo "::add-path::C:\msys64\usr\bin"
Expected behavior
GNU tar is selected if it is available.
Desktop (please complete the following information):
OS: Windows
Reacted by Claudio Jolowicz, Michael Kriese, notaphplover, svkuhn, Pavel Grivachev and Tencho Tenev
In ruby/setup-ruby#102 we noticed that the MSYS2 tar doesn't seem to work with the given arguments.
Probably, the list of paths needs to be / paths and not \ paths.
Issue for that: #632
Activity
eregon commentedon Nov 12, 2020
In ruby/setup-ruby#102 we noticed that the MSYS2 tar doesn't seem to work with the given arguments.
Probably, the list of paths needs to be
/paths and not\paths.Issue for that: #632
Add comment for GitHub Actions `enableCrossOsArchive`
Add comments for GitHub Actions `enableCrossOsArchive`
windows: try gnu tar