echo useVersion on local cache hit

This commit is contained in:
Emil Lerch 2024-04-28 23:30:52 -07:00
parent 811a846949
commit 5ad6acd0b1
Signed by: lobo
GPG Key ID: A7B62D657EF764F8
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -82210,7 +82210,7 @@ async function downloadZig(arch, platform, version3, useCache = true) {
} = version3.includes("+") ? resolveCommit(arch, platform, version3) : await resolveVersion(arch, platform, version3); } = version3.includes("+") ? resolveCommit(arch, platform, version3) : await resolveVersion(arch, platform, version3);
const cachedPath = toolCache.find(TOOL_NAME, useVersion); const cachedPath = toolCache.find(TOOL_NAME, useVersion);
if (cachedPath) { if (cachedPath) {
actions.info(`using cached zig install: ${cachedPath}`); actions.info(`using cached zig install (version ${useVersion}): ${cachedPath}`);
return cachedPath; return cachedPath;
} }
const cacheKey = `${TOOL_NAME}-${variantName}`; const cacheKey = `${TOOL_NAME}-${variantName}`;

View File

@ -28,7 +28,7 @@ async function downloadZig (arch, platform, version, useCache = true) {
const cachedPath = toolCache.find(TOOL_NAME, useVersion) const cachedPath = toolCache.find(TOOL_NAME, useVersion)
if (cachedPath) { if (cachedPath) {
actions.info(`using cached zig install: ${cachedPath}`) actions.info(`using cached zig install (version ${useVersion}): ${cachedPath}`)
return cachedPath return cachedPath
} }