From fc649b0937218ce22cdbade3398db62e53351136 Mon Sep 17 00:00:00 2001 From: sophia Date: Wed, 2 Mar 2022 15:03:27 -0600 Subject: [PATCH] Set first match without version constraint --- internal/server/singleprocess/state/box.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/server/singleprocess/state/box.go b/internal/server/singleprocess/state/box.go index fe23fe20c..c2bf847c3 100644 --- a/internal/server/singleprocess/state/box.go +++ b/internal/server/singleprocess/state/box.go @@ -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