Skip to content

Commit f8ad87a

Browse files
committed
fix: version matching
1 parent 48d5861 commit f8ad87a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/plugins/downloader_vcs.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,11 @@ func (d *VCSDownloader) matchingVersion(ctx context.Context, pi *pluginInfo, che
133133
if _, ok := checked[latest.tag]; !ok {
134134
checked[latest.tag] = check(latest.tag)
135135
}
136-
}
137136

138-
return repo, matching, latest, nil
137+
if checked[matching.tag] && checked[latest.tag] {
138+
return repo, matching, latest, nil
139+
}
140+
}
139141
}
140142

141143
func (d *VCSDownloader) MatchingVersion(ctx context.Context, pi *pluginInfo) (matching, latest *semver.Version, err error) {

0 commit comments

Comments
 (0)