Packages are installed during an upgrade when skipPackageUpgradesWhenNotInstalled
is enabled
#137
Labels
0 - _Triaging
Issue is accepted, but a milestone has yet to be added for the issue
Bug
Issues where something has happened which was not expected or intended
Customer
Bug reported or feature requested by a licensed customer of Chocolatey
What You Are Seeing?
When the feature
skipPackageUpgradesWhenNotInstalled
is enabled, and a playbook attempts to upgrade a package that is not present, it is installed.What is Expected?
When the feature
skipPackageUpgradesWhenNotInstalled
is enabled, and a playbook attempts to upgrade a package that is not present, it should not be installed (or upgraded).How Did You Get This To Happen? (Steps to Reproduce)
win_chocolatey
module attempted tochoco install
System Details
Output Log
chocolatey.log
Additional Context
Workarounds
Notes and Findings
state: upgrade
should (in my opinion) callUpdate-ChocolateyPackage
, we calculate which packages are missing from the system and callInstall-ChocolateyPackage
first.skipPackageUpgradesWhenNotInstalled
feature, as it's callingchoco install
, and that feature (presumably) only affectschoco upgrade
.Proposed Solution
a. Checking the feature could be "costly" in comparison to calling upgrade when state is upgrade, but there may be another reason we install missing packages regardless of some states?
Related Issues and Tickets
/cc @JPRuskin
The text was updated successfully, but these errors were encountered: