@@ -88039,6 +88039,7 @@ const sys = __importStar(__nccwpck_require__(5632));
88039
88039
const fs_1 = __importDefault(__nccwpck_require__(7147));
88040
88040
const os_1 = __importDefault(__nccwpck_require__(2037));
88041
88041
const utils_1 = __nccwpck_require__(1314);
88042
+ const GOLANG_DOWNLOAD_URL = 'https://go.dev/dl/?mode=json&include=all';
88042
88043
function getGo(versionSpec_1, checkLatest_1, auth_1) {
88043
88044
return __awaiter(this, arguments, void 0, function* (versionSpec, checkLatest, auth, arch = os_1.default.arch()) {
88044
88045
var _a;
@@ -88258,8 +88259,7 @@ function findMatch(versionSpec_1) {
88258
88259
const platFilter = sys.getPlatform();
88259
88260
let result;
88260
88261
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);
88263
88263
if (!candidates) {
88264
88264
throw new Error(`golang download url did not return results`);
88265
88265
}
@@ -88339,8 +88339,7 @@ function resolveStableVersionDist(versionSpec, arch) {
88339
88339
return __awaiter(this, void 0, void 0, function* () {
88340
88340
const archFilter = sys.getArch(arch);
88341
88341
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);
88344
88343
if (!candidates) {
88345
88344
throw new Error(`golang download url did not return results`);
88346
88345
}
0 commit comments