OneGet / oneget

PackageManagement (aka OneGet) is a package manager for Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot install latest version of Pester with DSC PackageManagement

Altern1ty opened this issue · comments

Hello,

I am unable to use PackageManagement to install the latest version of Pester 4.9.0. It remains at the same 3.4.0 version as comes installed by default on Windows 10 and Server 2016.

Even if I set the MinimumVersion to 4.9.0 it still stays on 3.4.0 but reports the DSC configuration as compliant, giving me back information.

PackageManagement Pester { Name = 'Pester' Ensure = 'Present' MinimumVersion = '4.9.0' } }

I would guess this is due to the issue with how Pester is installed on Win10 and 2016 as detailed here:
https://github.com/pester/Pester/wiki/Installation-and-Update

Is this something that can be handled in PackageManagement or what would be the appropriate workaround so I can use to DSC to ensure the latest version of Pester is installed?

Are you having this issue if you use RequiredVersion as well? If so, I'd suggest trying to delete Pester and then installing a minimum or required version.