mirror of https://github.com/actions/setup-go.git
possible fix
This commit is contained in:
parent
b7bdf8dcd0
commit
eb4d2dd387
|
@ -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++) {
|
||||
|
|
|
@ -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)[]
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue