Skip to content

Commit

Permalink
Merge pull request actions#471 from actions/aiyan/minor-edit
Browse files Browse the repository at this point in the history
Fix a bug with getCompressionMethod and minor edit to release note
  • Loading branch information
aiqiaoy authored May 19, 2020
2 parents 2c69398 + 44a99f6 commit 30e0a77
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion packages/cache/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
- Initial release

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

### 0.2.1
- Fix to await async function getCompressionMethod
2 changes: 1 addition & 1 deletion packages/cache/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cache/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@actions/cache",
"version": "0.2.0",
"version": "0.2.1",
"preview": true,
"description": "Actions cache lib",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/cache/src/internal/cacheUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async function getVersion(app: string): Promise<string> {

// Use zstandard if possible to maximize cache performance
export async function getCompressionMethod(): Promise<CompressionMethod> {
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
}
Expand Down

0 comments on commit 30e0a77

Please sign in to comment.