From 0afef57725593ef26f787d093b9b7c9b05d0673b Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Mon, 20 Mar 2023 18:28:00 -0500 Subject: [PATCH] cache - getCacheVersion - dup paths array --- src/internal/cacheHttpClient.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/internal/cacheHttpClient.ts b/src/internal/cacheHttpClient.ts index e05cac5..6e1b0ac 100644 --- a/src/internal/cacheHttpClient.ts +++ b/src/internal/cacheHttpClient.ts @@ -76,7 +76,8 @@ export function getCacheVersion( compressionMethod?: CompressionMethod, enableCrossOsArchive = false ): string { - const components = paths + // don't pass changes upstream + const components = paths.slice() // Add compression method to cache version to restore // compressed cache as per compression method