Fall back to downloading from go.dev/dl instead of storage.googleapis.com/golang(V5) (#689)

* update url

* npm run audit fix

* npm run build

* license updates

* license update

* license upodate

* license update

* license update

* updates

* format update

* updates
This commit is contained in:
aparnajyothi-y
2025-12-15 23:44:51 +05:30
committed by GitHub
parent fbd97068ad
commit 40f1582b24
25 changed files with 3178 additions and 454 deletions

View File

@@ -126,7 +126,7 @@ export async function getGo(
}
//
// Download from storage.googleapis.com
// Download from https://go.dev/dl
//
if (!downloadPath) {
info = await getInfoFromDist(versionSpec, arch);
@@ -386,7 +386,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',