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
Saving cache
C:\msys64\usr\bin\tar.exe --posix --use-compress-program "zstd -T0" -cf cache.tzst -P -C D:/a/setup-ruby/setup-ruby --files-from manifest.txt --force-local
/usr/bin/tar: vendor\bundle: Cannot stat: No such file or directory
/usr/bin/tar: Exiting with failure status due to previous errors
Warning: Tar failed with error: The process 'C:\msys64\usr\bin\tar.exe' failed with exit code 2
I guess this is due to using MSYS's tar and not one of the other tar.
As you can see, there are a few utilities that exist both in 'Windows' and in MSYS2. I know they're trying to sort it out in the 'virtual-environments' repo, have to go look. I wish they'd hard coded the paths when that happens so the correct tool is chosen, rather then depending on Path...
Sorry, I forgot to mention the backslashes. Almost all the MSFT programs/commands one would use in a shell (PowerShell or cmd) accept forward slashes...
Activity
eregon commentedon Nov 8, 2020
One possible solution would be to save/restore the
PATHaround saving the cache, but it seems rather inconvenient.MSP-Greg commentedon Nov 8, 2020
As you can see, there are a few utilities that exist both in 'Windows' and in MSYS2. I know they're trying to sort it out in the 'virtual-environments' repo, have to go look. I wish they'd hard coded the paths when that happens so the correct tool is chosen, rather then depending on
Path...eregon commentedon Nov 12, 2020
On https://github.com/eregon/setup-ruby/runs/1392737782?check_suite_focus=true#step:3:100 we can see the cache paths written to manifest.txt is
["vendor\\bundle"]but it should most likely uses/as separator for GNU tar.MSP-Greg commentedon Nov 12, 2020
Sorry, I forgot to mention the backslashes. Almost all the MSFT programs/commands one would use in a shell (PowerShell or cmd) accept forward slashes...
eregon commentedon Nov 12, 2020
I filed an issue upstream: actions/toolkit#632
Update to latest actions/cache to fix cache saving on Windows with MS…
Update to latest actions/cache to fix cache saving on Windows with MS…
eregon commentedon Dec 12, 2020
Fixed upstream, and dependency updated, it works now in https://github.com/ruby/setup-ruby/releases/tag/v1.59.1