|
|
|
|
@ -100576,12 +100576,14 @@ async function run() {
|
|
|
|
|
const versionSpec = resolveVersionInput();
|
|
|
|
|
setGoToolchain();
|
|
|
|
|
const cache = getBooleanInput('cache');
|
|
|
|
|
core_info(`Setup go version spec ${versionSpec}`);
|
|
|
|
|
let arch = getInput('architecture');
|
|
|
|
|
if (!arch) {
|
|
|
|
|
arch = external_os_default().arch();
|
|
|
|
|
}
|
|
|
|
|
if (versionSpec) {
|
|
|
|
|
startGroup(`Setup Go ${versionSpec}`);
|
|
|
|
|
try {
|
|
|
|
|
core_info(`Setup go version spec ${versionSpec}`);
|
|
|
|
|
const token = getInput('token');
|
|
|
|
|
const auth = !token ? undefined : `token ${token}`;
|
|
|
|
|
const checkLatest = getBooleanInput('check-latest');
|
|
|
|
|
@ -100603,6 +100605,10 @@ async function run() {
|
|
|
|
|
}
|
|
|
|
|
core_info(`Successfully set up Go version ${versionSpec}`);
|
|
|
|
|
}
|
|
|
|
|
finally {
|
|
|
|
|
endGroup();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
core_info('[warning]go-version input was not specified. The action will try to use pre-installed version.');
|
|
|
|
|
}
|
|
|
|
|
|