mirror of
https://github.com/actions/setup-go.git
synced 2026-07-17 19:03:37 +08:00
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:
+2
-2
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user