Set first match without version constraint

This commit is contained in:
sophia 2022-03-02 15:03:27 -06:00 committed by Paul Hinze
parent 517c33aacf
commit fc649b0937
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -198,6 +198,10 @@ func (s *State) boxFind(
continue
}
}
// Set first match
if match == nil {
match = boxIndexEntry
}
v, _ := version.NewVersion(boxIndexEntry.Version)
if v.GreaterThan(highestVersion) {
highestVersion = v