From f84d1a2ae2e7d0961050c3957f3daeb73de07223 Mon Sep 17 00:00:00 2001 From: Aiqiao Yan Date: Tue, 19 May 2020 16:12:28 -0400 Subject: [PATCH] Fix a bug with getCompressionMethod --- packages/cache/RELEASES.md | 2 +- packages/cache/package-lock.json | 2 +- packages/cache/package.json | 2 +- packages/cache/src/internal/cacheUtils.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/cache/RELEASES.md b/packages/cache/RELEASES.md index 62ed2a29..c6f6ad29 100644 --- a/packages/cache/RELEASES.md +++ b/packages/cache/RELEASES.md @@ -4,5 +4,5 @@ - Initial release -### 0.2.0 +### 0.2.1 - Fixes issues with the zstd compression algorithm on Windows and Ubuntu 16.04 [#469](https://github.com/actions/toolkit/pull/469) \ No newline at end of file diff --git a/packages/cache/package-lock.json b/packages/cache/package-lock.json index 80ef7664..a05581c1 100644 --- a/packages/cache/package-lock.json +++ b/packages/cache/package-lock.json @@ -1,6 +1,6 @@ { "name": "@actions/cache", - "version": "0.2.0", + "version": "0.2.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/cache/package.json b/packages/cache/package.json index 928a0283..c9c9eba1 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -1,6 +1,6 @@ { "name": "@actions/cache", - "version": "0.2.0", + "version": "0.2.1", "preview": true, "description": "Actions cache lib", "keywords": [ diff --git a/packages/cache/src/internal/cacheUtils.ts b/packages/cache/src/internal/cacheUtils.ts index 53b35afa..b2793695 100644 --- a/packages/cache/src/internal/cacheUtils.ts +++ b/packages/cache/src/internal/cacheUtils.ts @@ -83,7 +83,7 @@ async function getVersion(app: string): Promise { // Use zstandard if possible to maximize cache performance export async function getCompressionMethod(): Promise { - if (process.platform === 'win32' && !isGnuTarInstalled()) { + if (process.platform === 'win32' && !(await isGnuTarInstalled())) { // Disable zstd due to bug https://github.com/actions/cache/issues/301 return CompressionMethod.Gzip }