Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Older docker version is installed even if a newer version is passed to -MaximumVersion parameter of DockerMsftProvider #83

Open
vksv opened this issue Jun 1, 2021 · 0 comments

Comments

@vksv
Copy link

vksv commented Jun 1, 2021

Repro Steps
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-Module -Name "DockerMsftProvider" -Repository PSGallery -Force -Confirm:$False
Install-Package -Name docker -ProviderName DockerMsftProvider -Force -Confirm:$False -MaximumVersion 19.03.14

Expected Output
19.03.14 is installed

Actual Output
18.09.14 is installed

Workaround
Use -RequiredVersion instead of -MaximumVersion. Example is below
Install-Package -Name Docker -ProviderName DockerMsftProvider -Update -RequiredVersion 19.03.14 -Force

Investigation Notes
Looks like version comparison logic only runs against the version identified in the channels (18.03, 17.06, 18.09, 19.03, 20.10).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant