diff --git a/cmd/krew/cmd/update.go b/cmd/krew/cmd/update.go index cb8a0cea..2de26f64 100644 --- a/cmd/krew/cmd/update.go +++ b/cmd/krew/cmd/update.go @@ -132,7 +132,7 @@ func ensureDefaultIndexIfNoneExist() error { "failed to add default plugin index in absence of no indexes") } -// ensureDefaultIndexIfNoneExist iterates over all indexes and updates them +// ensureIndexesUpdated iterates over all indexes and updates them // and prints new plugins and upgrades available for installed plugins. func ensureIndexesUpdated() error { preUpdateIndex, _ := indexscanner.LoadPluginListFromFS(paths.IndexPluginsPath(constants.DefaultIndexName)) @@ -175,9 +175,7 @@ func ensureIndexesUpdated() error { installedPlugins[receipt.Name] = receipt.Spec.Version } - // TODO(chriskim06) consider commenting this out when refactoring for custom indexes showUpdatedPlugins(os.Stderr, preUpdateIndex, posUpdateIndex, installedPlugins) - return errors.Wrapf(returnErr, "failed to update the following indexes: %s\n", strings.Join(failed, ", ")) }