When using the cChocoPackageInstaller with AutoUpgrade set to $true the testing code continusly causes drifts due to the handling of the source parameter.
Version: Chocolatey v1.0.1
OS: Windows Server 2019
choco upgrade GoogleChrome --noop --source="-pSource"sys-Baseline""
Chocolatey v1.0.1
_ Chocolatey:ChocolateyUpgradeCommand - Noop Mode _
GoogleChrome was not found with the source(s) listed.
If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
Version: ""; Source(s): "-pSourcesys-Baseline"
Chocolatey can upgrade 0/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Warnings:
- GoogleChrome - GoogleChrome was not found with the source(s) listed.
Adjusting the source option to remove the "-pSource" bit fixes the issue;
choco upgrade GoogleChrome --noop --source="sys-Baseline"
Chocolatey v1.0.1
_ Chocolatey:ChocolateyUpgradeCommand - Noop Mode _
GoogleChrome v101.0.4951.41 is the latest version available based on your source(s).
Chocolatey can upgrade 0/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Hi,
When using the cChocoPackageInstaller with AutoUpgrade set to $true the testing code continusly causes drifts due to the handling of the source parameter.
Version: Chocolatey v1.0.1 OS: Windows Server 2019
cChoco Module version: 2.5.0.0
Powershell:
DSC trace log;
The main issue is with the upgrade test line. The source value of "-pSource"sys-Baseline" causes it to fail.
'choco upgrade GoogleChrome --noop --source="-pSource"sys-Baseline""'
See below;
Adjusting the source option to remove the "-pSource" bit fixes the issue;