Fix permissions issues using gtar on mac

This commit is contained in:
David Hadka authored and GitHub committed 2021-04-09 13:38:55 -05:00
1 parent 823bdf43ef
commit 43af7e1698
1 file changed
+2
+2
View File
@@ -26,6 +26,8 @@ async function getTarPath(
case 'darwin': {
const gnuTar = await io.which('gtar', false)
if (gnuTar) {
// fix permission denied errors when extracting BSD tar archive with GNU tar - https://github.com/actions/cache/issues/527
args.push('--delay-directory-restore')
return gnuTar
}
break