mirror of
https://code.forgejo.org/actions/setup-go
synced 2025-06-22 18:08:03 +02:00
CR feedback
This commit is contained in:
parent
7ea80d8e5f
commit
43880314e9
4 changed files with 95 additions and 42 deletions
|
@ -84,7 +84,10 @@ export async function findMatch(
|
|||
}
|
||||
|
||||
debug(`check ${version} satisfies ${versionSpec}`);
|
||||
if (semver.satisfies(version, versionSpec) && candidate.stable == stable) {
|
||||
if (
|
||||
semver.satisfies(version, versionSpec) &&
|
||||
(!stable || candidate.stable === stable)
|
||||
) {
|
||||
goFile = candidate.files.find(file => {
|
||||
debug(`${file.arch}===${archFilter} && ${file.os}===${platFilter}`);
|
||||
return file.arch === archFilter && file.os === platFilter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue