We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8951535 commit 5bc61c2Copy full SHA for 5bc61c2
src/cache.ts
@@ -59,9 +59,6 @@ async function buildCacheKeys(): Promise<string[]> {
59
keys.push(cacheKey)
60
// Get working directory from input
61
const workingDirectory = core.getInput(`working-directory`)
62
- if (!fs.existsSync(workingDirectory) || !fs.lstatSync(workingDirectory).isDirectory()) {
63
- throw new Error(`working-directory (${workingDirectory}) was not a path`)
64
- }
65
// create path to go.mod prepending the workingDirectory if it exists
66
const goModPath = path.join(workingDirectory, `go.mod`)
67
core.info(`Checking for go.mod: ${goModPath}`)
0 commit comments