From ddb5a79ec2229bcafdb16873d3d2928d6fde86f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Inez=20Korczy=C5=84ski?= Date: Wed, 12 Apr 2023 00:15:26 +0200 Subject: [PATCH] Exclude manifest file from the created archive --- packages/cache/src/internal/tar.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/cache/src/internal/tar.ts b/packages/cache/src/internal/tar.ts index adf61069..ff67afe8 100644 --- a/packages/cache/src/internal/tar.ts +++ b/packages/cache/src/internal/tar.ts @@ -77,6 +77,8 @@ async function getTarArgs( ? tarFile : cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'), '--exclude', + ManifestFilename, + '--exclude', BSD_TAR_ZSTD ? tarFile : cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),