Return alias condition to main

This commit is contained in:
panticmilos 2022-11-23 18:50:03 +01:00
parent a29996aa9d
commit 18c62c8dd3
3 changed files with 22 additions and 21 deletions

View file

@ -56,18 +56,6 @@ export async function getGo(
}
}
if (
versionSpec === StableReleaseAlias.Stable ||
versionSpec === StableReleaseAlias.OldStable
) {
versionSpec = await resolveStableVersionInput(
versionSpec,
auth,
arch,
manifest
);
}
// check cache
let toolPath: string;
toolPath = tc.find('go', versionSpec, arch);
@ -354,7 +342,7 @@ export function parseGoVersionFile(versionFilePath: string): string {
return contents.trim();
}
async function resolveStableVersionInput(
export async function resolveStableVersionInput(
versionSpec: string,
auth: string | undefined,
arch = os.arch(),