@@ -88039,6 +88039,7 @@ const sys = __importStar(__nccwpck_require__(5632));
8803988039const fs_1 = __importDefault(__nccwpck_require__(7147));
8804088040const os_1 = __importDefault(__nccwpck_require__(2037));
8804188041const utils_1 = __nccwpck_require__(1314);
88042+ const GOLANG_DOWNLOAD_URL = 'https://go.dev/dl/?mode=json&include=all';
8804288043function getGo(versionSpec_1, checkLatest_1, auth_1) {
8804388044 return __awaiter(this, arguments, void 0, function* (versionSpec, checkLatest, auth, arch = os_1.default.arch()) {
8804488045 var _a;
@@ -88258,8 +88259,7 @@ function findMatch(versionSpec_1) {
8825888259 const platFilter = sys.getPlatform();
8825988260 let result;
8826088261 let match;
88261- const dlUrl = 'https://golang.org/dl/?mode=json&include=all';
88262- const candidates = yield module.exports.getVersionsDist(dlUrl);
88262+ const candidates = yield module.exports.getVersionsDist(GOLANG_DOWNLOAD_URL);
8826388263 if (!candidates) {
8826488264 throw new Error(`golang download url did not return results`);
8826588265 }
@@ -88339,8 +88339,7 @@ function resolveStableVersionDist(versionSpec, arch) {
8833988339 return __awaiter(this, void 0, void 0, function* () {
8834088340 const archFilter = sys.getArch(arch);
8834188341 const platFilter = sys.getPlatform();
88342- const dlUrl = 'https://golang.org/dl/?mode=json&include=all';
88343- const candidates = yield module.exports.getVersionsDist(dlUrl);
88342+ const candidates = yield module.exports.getVersionsDist(GOLANG_DOWNLOAD_URL);
8834488343 if (!candidates) {
8834588344 throw new Error(`golang download url did not return results`);
8834688345 }
0 commit comments