mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-22 16:53:57 +08:00
disable --force_local on windows
This commit is contained in:
parent
eed9cfe64d
commit
7d0857fb6f
1 changed files with 3 additions and 3 deletions
4
dist/restore/index.js
vendored
4
dist/restore/index.js
vendored
|
@ -5186,13 +5186,13 @@ function getTarPath(args, compressionMethod) {
|
||||||
if (compressionMethod !== constants_1.CompressionMethod.Gzip) {
|
if (compressionMethod !== constants_1.CompressionMethod.Gzip) {
|
||||||
// We only use zstandard compression on windows when gnu tar is installed due to
|
// We only use zstandard compression on windows when gnu tar is installed due to
|
||||||
// a bug with compressing large files with bsdtar + zstd
|
// a bug with compressing large files with bsdtar + zstd
|
||||||
args.push('--force-local');
|
//args.push('--force-local');
|
||||||
}
|
}
|
||||||
else if (fs_1.existsSync(systemTar)) {
|
else if (fs_1.existsSync(systemTar)) {
|
||||||
return systemTar;
|
return systemTar;
|
||||||
}
|
}
|
||||||
else if (yield utils.isGnuTarInstalled()) {
|
else if (yield utils.isGnuTarInstalled()) {
|
||||||
args.push('--force-local');
|
// args.push('--force-local');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return yield io.which('tar', true);
|
return yield io.which('tar', true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue