Skip to content

Commit e0f033f

Browse files
FindPlatformReleaseDependencies now returns the latest compatible version, when no version is passed
1 parent 79322ba commit e0f033f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino/cores/packagemanager/download.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (pme *Explorer) FindPlatformReleaseDependencies(item *PlatformReference) (*
8787
return nil, nil, fmt.Errorf(tr("required version %[1]s not found for platform %[2]s"), item.PlatformVersion, platform.String())
8888
}
8989
} else {
90-
release = platform.GetLatestRelease()
90+
release = platform.GetLatestCompatibleRelease()
9191
if release == nil {
9292
return nil, nil, fmt.Errorf(tr("platform %s has no available releases"), platform.String())
9393
}

0 commit comments

Comments
 (0)