Skip to content

Commit

Permalink
FindPlatformReleaseDependencies now returns the latest compatible ver…
Browse files Browse the repository at this point in the history
…sion, when no version is passed
  • Loading branch information
alessio-perugini committed Aug 24, 2023
1 parent c0ca2e8 commit 73c0a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arduino/cores/packagemanager/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (pme *Explorer) FindPlatformReleaseDependencies(item *PlatformReference) (*
return nil, nil, fmt.Errorf(tr("required version %[1]s not found for platform %[2]s"), item.PlatformVersion, platform.String())
}
} else {
release = platform.GetLatestRelease()
release = platform.GetLatestCompatibleRelease()
if release == nil {
return nil, nil, fmt.Errorf(tr("platform %s has no available releases"), platform.String())
}
Expand Down

0 comments on commit 73c0a70

Please sign in to comment.