From 22fe357ece3a2eb053dc840a2813f8025374dc66 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Fri, 28 Oct 2022 09:47:22 -0400 Subject: [PATCH] tool-cache now logs when it skips a version Really helps debugging if, for some reason, a tool doesn't follow semver --- packages/tool-cache/src/tool-cache.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/tool-cache/src/tool-cache.ts b/packages/tool-cache/src/tool-cache.ts index 694d1252..1facbb8f 100644 --- a/packages/tool-cache/src/tool-cache.ts +++ b/packages/tool-cache/src/tool-cache.ts @@ -555,6 +555,8 @@ export function findAllVersions(toolName: string, arch?: string): string[] { if (fs.existsSync(fullPath) && fs.existsSync(`${fullPath}.complete`)) { versions.push(child) } + } else { + core.debug(`Skipping ${child} as it is not an explicit version.`) } } }