Skip to content

Commit 19f3156

Browse files
committed
fixed it
Signed-off-by: dongjiang <[email protected]>
1 parent d2ccfbe commit 19f3156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/setup-envtest/env/env.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ func (e *Env) EnsureVersionIsSet(ctx context.Context) {
247247
serverVer, platform := e.LatestVersion(ctx)
248248

249249
// if we're not forcing a download, and we have a newer local version, just use that
250-
if !e.ForceDownload && localVer != nil && localVer.Compare(serverVer) >= 0 {
250+
if !e.ForceDownload && localVer != nil && localVer.Compare(serverVer) > 0 {
251251
e.Platform.Platform = localPlat // update our data with hash
252252
e.Version.MakeConcrete(*localVer)
253253
return

0 commit comments

Comments
 (0)