From 7d00f8cf5c4755fe99a6b746a62b0fded5d00238 Mon Sep 17 00:00:00 2001 From: Kevin Stillhammer Date: Fri, 20 Dec 2024 11:38:00 +0100 Subject: [PATCH] Fix wrong cacheDependencyPathHash --- dist/save-cache/index.js | 2 ++ dist/setup/index.js | 2 ++ src/cache/restore-cache.ts | 2 ++ 3 files changed, 6 insertions(+) diff --git a/dist/save-cache/index.js b/dist/save-cache/index.js index 7e7b7b7..39dc9a7 100644 --- a/dist/save-cache/index.js +++ b/dist/save-cache/index.js @@ -91492,6 +91492,8 @@ function computeKeys(version) { if (cacheDependencyPathHash === "-") { core.warning(`No file matched to [${inputs_1.cacheDependencyGlob.split("\n").join(",")}]. The cache will never get invalidated. Make sure you have checked out the target repository and configured the cache-dependency-glob input correctly.`); } + } + if (cacheDependencyPathHash === "-") { cacheDependencyPathHash = "-no-dependency-glob"; } const suffix = inputs_1.cacheSuffix ? `-${inputs_1.cacheSuffix}` : ""; diff --git a/dist/setup/index.js b/dist/setup/index.js index e9f1bff..7ae1934 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -96575,6 +96575,8 @@ function computeKeys(version) { if (cacheDependencyPathHash === "-") { core.warning(`No file matched to [${inputs_1.cacheDependencyGlob.split("\n").join(",")}]. The cache will never get invalidated. Make sure you have checked out the target repository and configured the cache-dependency-glob input correctly.`); } + } + if (cacheDependencyPathHash === "-") { cacheDependencyPathHash = "-no-dependency-glob"; } const suffix = inputs_1.cacheSuffix ? `-${inputs_1.cacheSuffix}` : ""; diff --git a/src/cache/restore-cache.ts b/src/cache/restore-cache.ts index 82572a0..e1ebde5 100644 --- a/src/cache/restore-cache.ts +++ b/src/cache/restore-cache.ts @@ -47,6 +47,8 @@ async function computeKeys(version: string): Promise { `No file matched to [${cacheDependencyGlob.split("\n").join(",")}]. The cache will never get invalidated. Make sure you have checked out the target repository and configured the cache-dependency-glob input correctly.`, ); } + } + if (cacheDependencyPathHash === "-") { cacheDependencyPathHash = "-no-dependency-glob"; } const suffix = cacheSuffix ? `-${cacheSuffix}` : "";