Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e65a4fc369 |
5
dist/setup/index.js
vendored
5
dist/setup/index.js
vendored
@ -93271,6 +93271,11 @@ function getGo(versionSpec_1, checkLatest_1, auth_1) {
|
|||||||
try {
|
try {
|
||||||
info = yield getInfoFromManifest(versionSpec, true, auth, arch, manifest);
|
info = yield getInfoFromManifest(versionSpec, true, auth, arch, manifest);
|
||||||
if (info) {
|
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);
|
downloadPath = yield installGoVersion(info, auth, arch);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@ -104,6 +104,11 @@ export async function getGo(
|
|||||||
try {
|
try {
|
||||||
info = await getInfoFromManifest(versionSpec, true, auth, arch, manifest);
|
info = await getInfoFromManifest(versionSpec, true, auth, arch, manifest);
|
||||||
if (info) {
|
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);
|
downloadPath = await installGoVersion(info, auth, arch);
|
||||||
} else {
|
} else {
|
||||||
core.info(
|
core.info(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user