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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 3178 additions and 454 deletions

View file

@ -388,7 +388,7 @@ describe('setup-go', () => {
const expPath = path.win32.join(toolPath, 'bin');
expect(dlSpy).toHaveBeenCalledWith(
'https://storage.googleapis.com/golang/go1.13.1.windows-amd64.zip',
'https://go.dev/dl/go1.13.1.windows-amd64.zip',
'C:\\temp\\go1.13.1.windows-amd64.zip',
undefined
);
@ -945,7 +945,7 @@ use .
const expectedUrl =
platform === 'win32'
? `https://github.com/actions/go-versions/releases/download/${version}/go-${version}-${platform}-${arch}.${fileExtension}`
: `https://storage.googleapis.com/golang/go${version}.${osSpec}-${arch}.${fileExtension}`;
: `https://go.dev/dl/go${version}.${osSpec}-${arch}.${fileExtension}`;
// ... but not in the local cache
findSpy.mockImplementation(() => '');