mirror of
https://github.com/actions/setup-go.git
synced 2025-06-29 12:43:45 +00:00
minor fix
This commit is contained in:
parent
11e0301e1d
commit
5a5cdc8151
2 changed files with 19 additions and 3 deletions
|
@ -52,6 +52,8 @@ export async function getGo(
|
|||
);
|
||||
|
||||
if (!stableVersion) {
|
||||
let archFilter = sys.getArch(arch);
|
||||
let platFilter = sys.getPlatform();
|
||||
const dlUrl: string = 'https://golang.org/dl/?mode=json&include=all';
|
||||
let candidates:
|
||||
| IGoVersion[]
|
||||
|
@ -69,11 +71,19 @@ export async function getGo(
|
|||
|
||||
stableVersion = await resolveStableVersionInput(
|
||||
versionSpec,
|
||||
arch,
|
||||
osPlat,
|
||||
archFilter,
|
||||
platFilter,
|
||||
fixedCandidates
|
||||
);
|
||||
|
||||
if (!stableVersion) {
|
||||
throw new Error(
|
||||
`Unable to find Go version '${versionSpec}' for platform ${osPlat} and architecture ${arch}.`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
versionSpec = stableVersion;
|
||||
}
|
||||
|
||||
if (checkLatest) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue