From e65a4fc3698371bdd54eef1981ff4e9659769c5b Mon Sep 17 00:00:00 2001 From: suisrc Date: Thu, 26 Jun 2025 20:06:17 +0800 Subject: [PATCH] fix v5.8 --- dist/setup/index.js | 5 +++++ src/installer.ts | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/dist/setup/index.js b/dist/setup/index.js index 03b1abb..7865a2c 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -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 { diff --git a/src/installer.ts b/src/installer.ts index 1b5f20f..74c481f 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -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(