-
Notifications
You must be signed in to change notification settings - Fork 905
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
(#2050) Upgrade add parameter to ignore pins #2464
Conversation
If this switch also should be added to the install and uninstall commands, it should be trivial. For some reason, the upgraded package is not pinned, and I'm not sure why that is. |
f2cc824
to
d855426
Compare
77d8f45
to
387cc64
Compare
I figured it out, the configuration does not automatically trickle back up to into Edit: Now fixed. |
387cc64
to
fe08b4f
Compare
fe08b4f
to
2728a5f
Compare
2728a5f
to
fd40240
Compare
fd40240
to
457dc08
Compare
5865e6c
to
a2387aa
Compare
05ddb4a
to
13eea3b
Compare
13eea3b
to
8525f0d
Compare
224ea75
to
a1b925e
Compare
ada68fe
to
b123bfa
Compare
During a conversation with @pauby the suggestion was made that the new option should be The term bypass is only used on one other option, whereas there are 8 that have |
f67c629
to
b391ba3
Compare
That sound good, I've fixed that up and rebased the PR. |
b391ba3
to
9cf45c8
Compare
9cf45c8
to
16f84c2
Compare
src/chocolatey/infrastructure.app/commands/ChocolateyUpgradeCommand.cs
Outdated
Show resolved
Hide resolved
567c2e2
to
2672457
Compare
Given that there is already |
This adds a switch to the upgrade command to bypass/ignore any pinned packages. It will write out a warning message if a pinned package is being upgraded. The package will remain pinned after the upgrade completes, although pinned to the new version.
This commit adds a simple unit test to verify that the --ignore-pin option appears in the OptionSet that is generated.
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.
LGTM!
@TheCakeIsNaOH thank you very much for taking the lead with getting this feature added! |
Description Of Changes
This adds a switch to the upgrade command to bypass/ignore any pinned
packages. It will write out a warning message if a pinned package is
being upgraded.
Motivation and Context
This is useful if you want to upgrade a pinned package and have it remain pinned after the upgrade.
Testing
Change Types Made
Related Issue
Fixes #2050
Depends on #2463 (Now merged)
Depends on #2484 (Now merged)
Change Checklist