Skip to content

Commit f84d1a2

Browse files
Aiqiao YanAiqiao Yan
authored andcommitted
Fix a bug with getCompressionMethod
1 parent e3a666f commit f84d1a2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/cache/RELEASES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
- Initial release
66

7-
### 0.2.0
7+
### 0.2.1
88
- Fixes issues with the zstd compression algorithm on Windows and Ubuntu 16.04 [#469](https://github.com/actions/toolkit/pull/469)

packages/cache/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cache/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@actions/cache",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"preview": true,
55
"description": "Actions cache lib",
66
"keywords": [

packages/cache/src/internal/cacheUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async function getVersion(app: string): Promise<string> {
8383

8484
// Use zstandard if possible to maximize cache performance
8585
export async function getCompressionMethod(): Promise<CompressionMethod> {
86-
if (process.platform === 'win32' && !isGnuTarInstalled()) {
86+
if (process.platform === 'win32' && !(await isGnuTarInstalled())) {
8787
// Disable zstd due to bug https://github.com/actions/cache/issues/301
8888
return CompressionMethod.Gzip
8989
}

0 commit comments

Comments
 (0)