-
Notifications
You must be signed in to change notification settings - Fork 908
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
(#798) Add parameter to install and upgrade commands to pin after install #2463
Conversation
I am aware that this is a duplicate PR to #1915, I just think that this is a cleaner implementation to add the pin file directly via @bergmeister feel free to use my code to update your PR if you want and I can close this PR. It was easier to throw this PR together rather than trying to describe what I am suggesting in writing. |
028326a
to
9f37327
Compare
9f37327
to
30112e8
Compare
30112e8
to
8d5263a
Compare
8d5263a
to
66264f0
Compare
66264f0
to
0f19b70
Compare
375a20c
to
78287ad
Compare
Make indenting consistent for parameters in install and upgrade commands.
This adds a parameter to pin packages after install or upgrade. It re-uses the code in save_package_information to create the pin file.
Add specs for pin parameter for the install/upgrade commands
This adds the PinPackage element to the definition of the packages.config format. This allows the pin-package argument to be used via a config file.
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 thanks for pulling all this together! I made a slight change in the PR to mark the new option as being available in 1.2.0 rather than 1.1.0. I will get this merged in, assuming that the CI builds pass. |
A mistake was made in previous commit, where property name was changed to use a more consistent version, however, the wrong property name was changed, and this wasn't tested before pushing up the commit.
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!
The failing Ubuntu build here is a known issue, so going to move forward with getting this merged! |
Description Of Changes
This adds a parameter to pin packages after install or upgrade.
It re-uses the code in save_package_information to create the pin file.
Motivation and Context
See #798
Testing
wget
with--pin
, checked that it was pinned withchoco pin list
wget
without--pin
, checked that it was not pinned withchoco pin list
wget
with--pin
, checked that it was pinned withchoco pin list
wget
without--pin
, checked that it was not pinned withchoco pin list
Create this
packages.config
file:Install via that file and then check that wget is pinned with
choco pin list
Change Types Made
Related Issue
Fixes #798
Change Checklist