mirror of
https://code.forgejo.org/actions/setup-go
synced 2025-06-21 09:28:00 +02:00
bugs
This commit is contained in:
parent
dc575ee3b3
commit
3c844703e7
5 changed files with 11 additions and 10 deletions
|
@ -15,7 +15,7 @@ export async function downloadGo(
|
|||
|
||||
if (match) {
|
||||
// download
|
||||
let downloadUrl: string = `https://storage.googleapis.com/golang/${match.files[0]}`;
|
||||
let downloadUrl: string = `https://storage.googleapis.com/golang/${match.files[0].filename}`;
|
||||
let downloadPath: string = await tc.downloadTool(downloadUrl);
|
||||
|
||||
// extract
|
||||
|
@ -80,7 +80,6 @@ export async function findMatch(
|
|||
version = version + '.0';
|
||||
}
|
||||
|
||||
//console.log(version, versionSpec);
|
||||
if (semver.satisfies(version, versionSpec) && candidate.stable == stable) {
|
||||
goFile = candidate.files.find(file => {
|
||||
return file.arch === archFilter && file.os === platFilter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue