-
Notifications
You must be signed in to change notification settings - Fork 949
Before modify script not called when install command is used to upgrade #962
Copy link
Copy link
Open
Labels
0 - BacklogIssue is accepted, but is not ready to be worked on or not in current sprint.Issue is accepted, but is not ready to be worked on or not in current sprint.EnhancementIssues that introduce new functionality to the project, or enhances/updates existing functionality.Issues that introduce new functionality to the project, or enhances/updates existing functionality.Priority - LowRepresents issues that are of lower priority, can be taken care of whenever.Represents issues that are of lower priority, can be taken care of whenever.Up For GrabsIssues that are available by the community to work on.Issues that are available by the community to work on.
Milestone
Metadata
Metadata
Assignees
Labels
0 - BacklogIssue is accepted, but is not ready to be worked on or not in current sprint.Issue is accepted, but is not ready to be worked on or not in current sprint.EnhancementIssues that introduce new functionality to the project, or enhances/updates existing functionality.Issues that introduce new functionality to the project, or enhances/updates existing functionality.Priority - LowRepresents issues that are of lower priority, can be taken care of whenever.Represents issues that are of lower priority, can be taken care of whenever.Up For GrabsIssues that are available by the community to work on.Issues that are available by the community to work on.
What You Are Seeing?
If I have a package already installed and then I call:
choco install package --version <next version>The before modify script doesn't get run, even though that seems to me like it should be an upgrade scenario. The script does get run if I call:
choco upgrade package --version <next version>What is Expected?
IMHO, if the upgrade command can install a package that doesn't exist, then the install command should detect an upgrade scenario if you aren't installing side-by-side.
How Did You Get This To Happen? (Steps to Reproduce)
Detailed above