@actions/cache
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -84,3 +84,9 @@ "use strict"; | ||
// Paths are made relative so the tar entries are all relative to the root of the workspace. | ||
paths.push(`${relativeFile}`); | ||
if (relativeFile === '') { | ||
// path.relative returns empty string if workspace and file are equal | ||
paths.push('.'); | ||
} | ||
else { | ||
paths.push(`${relativeFile}`); | ||
} | ||
} | ||
@@ -87,0 +93,0 @@ } |
@@ -83,5 +83,5 @@ "use strict"; | ||
case constants_1.CompressionMethod.Zstd: | ||
return ['--use-compress-program', 'zstd -d --long=30']; | ||
return ['--use-compress-program', 'unzstd --long=30']; | ||
case constants_1.CompressionMethod.ZstdWithoutLong: | ||
return ['--use-compress-program', 'zstd -d']; | ||
return ['--use-compress-program', 'unzstd']; | ||
default: | ||
@@ -117,5 +117,5 @@ return ['-z']; | ||
case constants_1.CompressionMethod.Zstd: | ||
return ['--use-compress-program', 'zstd -T0 --long=30']; | ||
return ['--use-compress-program', 'zstdmt --long=30']; | ||
case constants_1.CompressionMethod.ZstdWithoutLong: | ||
return ['--use-compress-program', 'zstd -T0']; | ||
return ['--use-compress-program', 'zstdmt']; | ||
default: | ||
@@ -151,5 +151,5 @@ return ['-z']; | ||
case constants_1.CompressionMethod.Zstd: | ||
return ['--use-compress-program', 'zstd -d --long=30']; | ||
return ['--use-compress-program', 'unzstd --long=30']; | ||
case constants_1.CompressionMethod.ZstdWithoutLong: | ||
return ['--use-compress-program', 'zstd -d']; | ||
return ['--use-compress-program', 'unzstd']; | ||
default: | ||
@@ -156,0 +156,0 @@ return ['-z']; |
{ | ||
"name": "@actions/cache", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"preview": true, | ||
@@ -5,0 +5,0 @@ "description": "Actions cache lib", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95590
1406