chocolatey / chocolatey-licensed-issues

Issues for Licensed Editions of Chocolatey
19 stars 13 forks source link

Package Reducer - Does Not Run When Allow Multiple Versions Is Passed #301

Open ryanrichter94 opened 2 years ago

ryanrichter94 commented 2 years ago

Is Your Feature Request Related To A Problem? Please describe.

Package Reducer does not work when installing packages with the --allow-multiple parameter passed. This is because the lib directory folder a package creates when installed passing allow multiple versions is `.version_number>.

For example when running choco install firefox --version 99.0 --allow-multiple -y the lib folder created is Firefox.99.0 and the following error message is shown when this runs:

Unable to find package at C:\ProgramData\chocolatey\lib\Firefox. Skipping package reducer.

Describe The Solution. Why is it needed?

Would be nice to have package reducer run when installing multiple versions of packages on the same machine.

Additional Context.

This also effects the choco optimize command. For example when running choco optimize --id="'firefox'". I get the following output: Unable to find package at C:\ProgramData\chocolatey\lib\Firefox. Skipping package reducer.

Related Issues

ZenDesk Ticket

┆Issue is synchronized with this Gitlab issue by Unito