1
0
Fork 0

Fix permissions issues using gtar on mac

pull/767/head
David Hadka 2021-04-09 13:38:55 -05:00 committed by GitHub
parent a6966e3148
commit 547a77cf75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ async function getTarPath(
case 'darwin': { case 'darwin': {
const gnuTar = await io.which('gtar', false) const gnuTar = await io.which('gtar', false)
if (gnuTar) { 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 return gnuTar
} }
break break