Fix a bug with getCompressionMethod

This commit is contained in:
Aiqiao Yan
2020-05-19 16:12:28 -04:00
parent e3a666f5b7
commit f84d1a2ae2
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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
}