diff --git a/plugin/discovery/meta_set.go b/plugin/discovery/meta_set.go index 066870e6e8..9fc0abb094 100644 --- a/plugin/discovery/meta_set.go +++ b/plugin/discovery/meta_set.go @@ -100,7 +100,7 @@ func (s PluginMetaSet) Newest() PluginMeta { panic(err) } - if first == true || version.newerThan(winnerVersion) { + if first == true || version.NewerThan(winnerVersion) { winner = p winnerVersion = version first = false diff --git a/plugin/discovery/version.go b/plugin/discovery/version.go index 160a969b0c..f2706bd530 100644 --- a/plugin/discovery/version.go +++ b/plugin/discovery/version.go @@ -32,6 +32,6 @@ func (v Version) String() string { return v.raw.String() } -func (v Version) newerThan(other Version) bool { +func (v Version) NewerThan(other Version) bool { return v.raw.GreaterThan(other.raw) }