From e3a666f5b7c8945c9e4006445d22b47d42fbb58f Mon Sep 17 00:00:00 2001 From: Aiqiao Yan Date: Tue, 19 May 2020 13:20:27 -0400 Subject: [PATCH 1/3] Minor edit to cache release note --- packages/cache/RELEASES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cache/RELEASES.md b/packages/cache/RELEASES.md index 66c248ca..62ed2a29 100644 --- a/packages/cache/RELEASES.md +++ b/packages/cache/RELEASES.md @@ -5,4 +5,4 @@ - Initial release ### 0.2.0 -- Fixes two issues around using zstd compression algorithm \ No newline at end of file +- 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 From f84d1a2ae2e7d0961050c3957f3daeb73de07223 Mon Sep 17 00:00:00 2001 From: Aiqiao Yan Date: Tue, 19 May 2020 16:12:28 -0400 Subject: [PATCH 2/3] 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 } From 44a99f6c4363791031fa25860f29e150c0afe452 Mon Sep 17 00:00:00 2001 From: Aiqiao Yan Date: Tue, 19 May 2020 16:36:18 -0400 Subject: [PATCH 3/3] Add section for 0.2.1 --- packages/cache/RELEASES.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/cache/RELEASES.md b/packages/cache/RELEASES.md index c6f6ad29..0e623d9e 100644 --- a/packages/cache/RELEASES.md +++ b/packages/cache/RELEASES.md @@ -4,5 +4,8 @@ - Initial release +### 0.2.0 +- Fixes issues with the zstd compression algorithm on Windows and Ubuntu 16.04 [#469](https://github.com/actions/toolkit/pull/469) + ### 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 +- Fix to await async function getCompressionMethod \ No newline at end of file