Plugins: Perform plugin update check prior to uninstall (#36909)

* only uninstall if update is possible

* add .

* update lingo for clarity
This commit is contained in:
Will Browne authored and GitHub committed 2021-07-29 11:52:23 +02:00
1 parent 8ebba0a93d
commit 08a73a5291
5 files changed
+45 -7

No files matched your search

+4
View File
@@ -702,6 +702,10 @@ func (f *fakePluginInstaller) Uninstall(ctx context.Context, pluginPath string)
return nil
}
func (f *fakePluginInstaller) GetUpdateInfo(pluginID, version, pluginRepoURL string) (plugins.UpdateInfo, error) {
return plugins.UpdateInfo{}, nil
}
func createManager(t *testing.T, cbs ...func(*PluginManager)) *PluginManager {
t.Helper()