Skip to content

Before modify script not called when install command is used to upgrade #962

@chrisdrobison

Description

@chrisdrobison

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions