From 50c55760205e977580f00f8b817bdb99eb4b6c3d Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Wed, 16 Oct 2024 16:22:14 +0200 Subject: [PATCH] Allow excluding files and folders when caching Signed-off-by: Jon Koops --- packages/cache/src/internal/cacheUtils.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/cache/src/internal/cacheUtils.ts b/packages/cache/src/internal/cacheUtils.ts index 4c2a16f35a..91fc676965 100644 --- a/packages/cache/src/internal/cacheUtils.ts +++ b/packages/cache/src/internal/cacheUtils.ts @@ -46,9 +46,7 @@ export function getArchiveFileSizeInBytes(filePath: string): number { export async function resolvePaths(patterns: string[]): Promise { const paths: string[] = [] const workspace = process.env['GITHUB_WORKSPACE'] ?? process.cwd() - const globber = await glob.create(patterns.join('\n'), { - implicitDescendants: false - }) + const globber = await glob.create(patterns.join('\n')) for await (const file of globber.globGenerator()) { const relativeFile = path