Skip to content

Commit

Permalink
Add hint why cache-dependency-glob fails (#184)
Browse files Browse the repository at this point in the history
Make it clear which input can be used to solve the error

Contributes to: #181
  • Loading branch information
eifinger authored Dec 8, 2024
1 parent 1e4d4ea commit bdcda7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/save-cache/index.js

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

2 changes: 1 addition & 1 deletion dist/setup/index.js

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

2 changes: 1 addition & 1 deletion src/cache/restore-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function computeKeys(version: string): Promise<string> {
cacheDependencyPathHash += await hashFiles(cacheDependencyGlob, true);
if (cacheDependencyPathHash === "-") {
throw new Error(
`No file matched to [${cacheDependencyGlob.split("\n").join(",")}], make sure you have checked out the target repository`,
`No file matched to [${cacheDependencyGlob.split("\n").join(",")}], make sure you have checked out the target repository and configured the cache-dependency-glob input correctly.`,
);
}
} else {
Expand Down

0 comments on commit bdcda7e

Please sign in to comment.