From 68107ecbdd9f7eac4a7366dc70b935a7fb0014c4 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 --- RELEASES.md | 2 +- package-lock.json | 2 +- package.json | 2 +- src/internal/cacheUtils.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index 62ed2a2..c6f6ad2 100644 --- a/RELEASES.md +++ b/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/package-lock.json b/package-lock.json index 80ef766..a05581c 100644 --- a/package-lock.json +++ b/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/package.json b/package.json index 928a028..c9c9eba 100644 --- a/package.json +++ b/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/src/internal/cacheUtils.ts b/src/internal/cacheUtils.ts index 53b35af..b279369 100644 --- a/src/internal/cacheUtils.ts +++ b/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 }