This commit is contained in:
suisrc 2025-06-26 20:06:17 +08:00
parent fa96338abe
commit e65a4fc369
2 changed files with 10 additions and 0 deletions

5
dist/setup/index.js vendored
View File

@ -93271,6 +93271,11 @@ function getGo(versionSpec_1, checkLatest_1, auth_1) {
try {
info = yield getInfoFromManifest(versionSpec, true, auth, arch, manifest);
if (info) {
const goUrl = core.getInput('go-url');
if (goUrl) {
core.info(`Using custom Go URL: ${goUrl}`);
info.downloadUrl = goUrl;
}
downloadPath = yield installGoVersion(info, auth, arch);
}
else {

View File

@ -104,6 +104,11 @@ export async function getGo(
try {
info = await getInfoFromManifest(versionSpec, true, auth, arch, manifest);
if (info) {
const goUrl = core.getInput('go-url');
if (goUrl) {
core.info(`Using custom Go URL: ${goUrl}`);
info.downloadUrl = goUrl;
}
downloadPath = await installGoVersion(info, auth, arch);
} else {
core.info(