@@ -93304,6 +93304,7 @@ const MANIFEST_REPO_OWNER = 'actions';
9330493304const MANIFEST_REPO_NAME = 'go-versions';
9330593305const MANIFEST_REPO_BRANCH = 'main';
9330693306const MANIFEST_URL = `https://raw.githubusercontent.com/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`;
93307+ const GOLANG_DOWNLOAD_URL = 'https://go.dev/dl/?mode=json&include=all';
9330793308function getGo(versionSpec_1, checkLatest_1, auth_1) {
9330893309 return __awaiter(this, arguments, void 0, function* (versionSpec, checkLatest, auth, arch = os_1.default.arch()) {
9330993310 var _a;
@@ -93569,8 +93570,7 @@ function findMatch(versionSpec_1) {
9356993570 const platFilter = sys.getPlatform();
9357093571 let result;
9357193572 let match;
93572- const dlUrl = 'https://golang.org/dl/?mode=json&include=all';
93573- const candidates = yield module.exports.getVersionsDist(dlUrl);
93573+ const candidates = yield module.exports.getVersionsDist(GOLANG_DOWNLOAD_URL);
9357493574 if (!candidates) {
9357593575 throw new Error(`golang download url did not return results`);
9357693576 }
@@ -93650,8 +93650,7 @@ function resolveStableVersionDist(versionSpec, arch) {
9365093650 return __awaiter(this, void 0, void 0, function* () {
9365193651 const archFilter = sys.getArch(arch);
9365293652 const platFilter = sys.getPlatform();
93653- const dlUrl = 'https://golang.org/dl/?mode=json&include=all';
93654- const candidates = yield module.exports.getVersionsDist(dlUrl);
93653+ const candidates = yield module.exports.getVersionsDist(GOLANG_DOWNLOAD_URL);
9365593654 if (!candidates) {
9365693655 throw new Error(`golang download url did not return results`);
9365793656 }
0 commit comments