From c874788d3c5a37303686228d289d6451dd90b0e6 Mon Sep 17 00:00:00 2001 From: Masahiro Furudate <178inaba.git@gmail.com> Date: Sat, 13 Apr 2024 23:46:49 +0900 Subject: [PATCH] Run `npm run build` --- dist/setup/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index ffccd09..5ea2fb4 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -93304,6 +93304,7 @@ const MANIFEST_REPO_OWNER = 'actions'; const MANIFEST_REPO_NAME = 'go-versions'; const MANIFEST_REPO_BRANCH = 'main'; const MANIFEST_URL = `https://raw.githubusercontent.com/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`; +const GOLANG_DOWNLOAD_URL = 'https://go.dev/dl/?mode=json&include=all'; function getGo(versionSpec_1, checkLatest_1, auth_1) { return __awaiter(this, arguments, void 0, function* (versionSpec, checkLatest, auth, arch = os_1.default.arch()) { var _a; @@ -93569,8 +93570,7 @@ function findMatch(versionSpec_1) { const platFilter = sys.getPlatform(); let result; let match; - const dlUrl = 'https://golang.org/dl/?mode=json&include=all'; - const candidates = yield module.exports.getVersionsDist(dlUrl); + const candidates = yield module.exports.getVersionsDist(GOLANG_DOWNLOAD_URL); if (!candidates) { throw new Error(`golang download url did not return results`); } @@ -93650,8 +93650,7 @@ function resolveStableVersionDist(versionSpec, arch) { return __awaiter(this, void 0, void 0, function* () { const archFilter = sys.getArch(arch); const platFilter = sys.getPlatform(); - const dlUrl = 'https://golang.org/dl/?mode=json&include=all'; - const candidates = yield module.exports.getVersionsDist(dlUrl); + const candidates = yield module.exports.getVersionsDist(GOLANG_DOWNLOAD_URL); if (!candidates) { throw new Error(`golang download url did not return results`); }