Fallback to downloading from go.dev/dl instead of storage.googleapis.com/golang (v4) (#690)

* fallback download url update

* license update

* license update

* license updates

* updates
This commit is contained in:
aparnajyothi-y
2025-12-15 23:00:28 +05:30
committed by GitHub
parent 19bb51245e
commit 7b8cf10d4e
25 changed files with 3279 additions and 416 deletions
+2 -2
View File
@@ -121,7 +121,7 @@ export async function getGo(
}
//
// Download from storage.googleapis.com
// Download from https://go.dev/dl
//
if (!downloadPath) {
info = await getInfoFromDist(versionSpec, arch);
@@ -304,7 +304,7 @@ async function getInfoFromDist(
return null;
}
const downloadUrl = `https://storage.googleapis.com/golang/${version.files[0].filename}`;
const downloadUrl = `https://go.dev/dl/${version.files[0].filename}`;
return <IGoVersionInfo>{
type: 'dist',