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(