-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor ListInstalledPlugins #558
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,6 +129,7 @@ func ensureIndexUpdated(_ *cobra.Command, _ []string) error { | |
installedPlugins[receipt.Name] = receipt.Spec.Version | ||
} | ||
|
||
// TODO(chriskim06) consider commenting this out when refactoring for custom indexes | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not quite commenting out, but I think we need to pass a similar Pair<indexName,plugin> here as well :) :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ya |
||
showUpdatedPlugins(os.Stderr, preUpdateIndex, posUpdateIndex, installedPlugins) | ||
|
||
return nil | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this sounds wrong. what if two plugins with identical names from different indexes exist? it'll show both as installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is here to preserve the existing functionality. I'm not trying to update search to work with custom indexes in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah makes sense. That said do you mind adding a TODO so we don't forget these things? The same works below, too.