Skip to content

Commit

Permalink
Fix wrong cacheDependencyPathHash
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed Dec 20, 2024
1 parent e3fb95a commit 7d00f8c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/save-cache/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/setup/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/cache/restore-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ async function computeKeys(version: string): Promise<string> {
`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}` : "";
Expand Down

0 comments on commit 7d00f8c

Please sign in to comment.