Fix issue with using zstd long range mode on ubuntu-16.04

This commit is contained in:
Aiqiao Yan
2020-05-18 16:33:15 -04:00
parent a67b91ea15
commit 77761a4dc9
6 changed files with 58 additions and 15 deletions
+3 -1
View File
@@ -96,7 +96,9 @@ export function getCacheVersion(
compressionMethod?: CompressionMethod
): string {
const components = paths.concat(
compressionMethod === CompressionMethod.Zstd ? [compressionMethod] : []
!compressionMethod || compressionMethod === CompressionMethod.Gzip
? []
: [compressionMethod]
)
// Add salt to cache version to support breaking changes in cache entry