Skip to content

Commit 30e0a77

Browse files
authored
Merge pull request actions#471 from actions/aiyan/minor-edit
Fix a bug with getCompressionMethod and minor edit to release note
2 parents 2c69398 + 44a99f6 commit 30e0a77

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

packages/cache/RELEASES.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@
55
- Initial release
66

77
### 0.2.0
8-
- Fixes two issues around using zstd compression algorithm
8+
- Fixes issues with the zstd compression algorithm on Windows and Ubuntu 16.04 [#469](https://github.com/actions/toolkit/pull/469)
9+
10+
### 0.2.1
11+
- Fix to await async function getCompressionMethod

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)