From f9dfb05bd2c556223750394ee101ff83c5b71da2 Mon Sep 17 00:00:00 2001 From: Lovepreet Singh Date: Thu, 17 Nov 2022 12:13:49 +0000 Subject: [PATCH] Temporarily remove thhe condition that prevents zstd usage on windows unless with GNUtar --- packages/cache/src/internal/cacheUtils.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/cache/src/internal/cacheUtils.ts b/packages/cache/src/internal/cacheUtils.ts index 64fef08a..03c52561 100644 --- a/packages/cache/src/internal/cacheUtils.ts +++ b/packages/cache/src/internal/cacheUtils.ts @@ -94,10 +94,10 @@ async function getVersion(app: string): Promise { // Use zstandard if possible to maximize cache performance export async function getCompressionMethod(): Promise { - if (process.platform === 'win32' && !(await getGnuTarPathOnWindows())) { - // Disable zstd due to bug https://github.com/actions/cache/issues/301 - return CompressionMethod.Gzip - } + // if (process.platform === 'win32' && !(await getGnuTarPathOnWindows())) { + // // Disable zstd due to bug https://github.com/actions/cache/issues/301 + // return CompressionMethod.Gzip + // } const versionOutput = await getVersion('zstd') const version = semver.clean(versionOutput)