Skip to content

Commit

Permalink
possible fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-shibanov committed Nov 29, 2022
1 parent b7bdf8d commit eb4d2dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63403,7 +63403,10 @@ function findMatch(versionSpec, arch = os_1.default.arch()) {
}
if (versionSpec === utils_1.StableReleaseAlias.Stable ||
versionSpec === utils_1.StableReleaseAlias.OldStable) {
versionSpec = yield resolveStableVersionInput(versionSpec, undefined, arch, candidates);
const fixedCandidates = candidates.map(item => {
return Object.assign(Object.assign({}, item), { version: makeSemver(item.version) });
});
versionSpec = yield resolveStableVersionInput(versionSpec, undefined, arch, fixedCandidates);
}
let goFile;
for (let i = 0; i < candidates.length; i++) {
Expand Down
5 changes: 4 additions & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,14 @@ export async function findMatch(
versionSpec === StableReleaseAlias.Stable ||
versionSpec === StableReleaseAlias.OldStable
) {
const fixedCandidates = candidates.map(item => {
return {...item, version: makeSemver(item.version)};
});
versionSpec = await resolveStableVersionInput(
versionSpec,
undefined,
arch,
candidates as (tc.IToolRelease & IGoVersion)[]
fixedCandidates as (tc.IToolRelease & IGoVersion)[]
);
}

Expand Down

0 comments on commit eb4d2dd

Please sign in to comment.