@@ -49585,6 +49585,7 @@ const MANIFEST_REPO_OWNER = 'actions';
4958549585const MANIFEST_REPO_NAME = 'go-versions';
4958649586const MANIFEST_REPO_BRANCH = 'main';
4958749587const MANIFEST_URL = `https://raw.githubusercontent.com/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`;
49588+ const GOLANG_DOWNLOAD_URL = 'https://go.dev/dl/?mode=json&include=all';
4958849589function getGo(versionSpec_1, checkLatest_1, auth_1) {
4958949590 return __awaiter(this, arguments, void 0, function* (versionSpec, checkLatest, auth, arch = os_1.default.arch()) {
4959049591 var _a;
@@ -49846,8 +49847,7 @@ function findMatch(versionSpec_1) {
4984649847 const platFilter = sys.getPlatform();
4984749848 let result;
4984849849 let match;
49849- const dlUrl = 'https://golang.org/dl/?mode=json&include=all';
49850- const candidates = yield module.exports.getVersionsDist(dlUrl);
49850+ const candidates = yield module.exports.getVersionsDist(GOLANG_DOWNLOAD_URL);
4985149851 if (!candidates) {
4985249852 throw new Error(`golang download url did not return results`);
4985349853 }
@@ -49937,8 +49937,7 @@ function resolveStableVersionDist(versionSpec, arch) {
4993749937 return __awaiter(this, void 0, void 0, function* () {
4993849938 const archFilter = sys.getArch(arch);
4993949939 const platFilter = sys.getPlatform();
49940- const dlUrl = 'https://golang.org/dl/?mode=json&include=all';
49941- const candidates = yield module.exports.getVersionsDist(dlUrl);
49940+ const candidates = yield module.exports.getVersionsDist(GOLANG_DOWNLOAD_URL);
4994249941 if (!candidates) {
4994349942 throw new Error(`golang download url did not return results`);
4994449943 }
0 commit comments