(#2462) Add deprecation notices for list with remote sources before making it local only #2626
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description Of Changes
This pull request deprecates the argument local only and the arguments only relevant when calling remote sources when the list command is used.
Additionnaly it also adds several deprecation noticed both in the help page, as well as when running the list command to ensure that users are truly notified of the change to make it local only in v2.0.0.
Motivation and Context
To make the list command only handle local/installed packages, and to notify users to the best of our ability that this change will happen.
Testing
choco list chocolatey
and ensure that there is a warning mentioning the list command will be made local onlychoco list chocolatey --noop
and ensure the same as step 2.choco list chocolatey --local-only
and ensure there is no deprecation notice displayed.choco list chocolatey --local-only --noop
and ensure the same as step 4.choco list --help
and ensure there is a correct deprecate notice at the top, each remote argument + local only argument is mentioned with a deprecation notice and that the alternative sources will be removed in the list command.choco search chocolatey
and ensure there is no deprecation notice displayed.choco search chocolatey --noop
and ensure the same as step 7.choco search chocolatey --local-only
and ensure the same as step 7.choco search chocolatey --local-only --noop
and ensure the same as step 7.choco search --help
and ensure the only deprecation notice is for the list example.find
command.Change Types Made
Related Issue
Fixes #2462
Change Checklist