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

This commit is contained in:
Aiqiao Yan committed 2020-05-18 16:33:15 -04:00
1 parent 6c4ba6514f
commit 800a3d0a98
6 files changed
+58 -15

No files matched your search

+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