From fa7f7eac99ac8be26fc4a420d7f35783824aa0ac Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com> Date: Fri, 12 Nov 2021 10:59:53 +0300 Subject: [PATCH] [Windows] Pin mongodb to 5.0 (#4482) * [Windows] pin mongodb to 5.0 * Change version argument to include "=" --- images/win/scripts/Installers/Install-MongoDB.ps1 | 2 +- images/win/toolsets/toolset-2016.json | 2 +- images/win/toolsets/toolset-2019.json | 2 +- images/win/toolsets/toolset-2022.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/images/win/scripts/Installers/Install-MongoDB.ps1 b/images/win/scripts/Installers/Install-MongoDB.ps1 index 8f4a9778..2265b40a 100644 --- a/images/win/scripts/Installers/Install-MongoDB.ps1 +++ b/images/win/scripts/Installers/Install-MongoDB.ps1 @@ -5,7 +5,7 @@ $toolsetVersion = (Get-ToolsetContent).mongodb.version $latestChocoPackage = Get-LatestChocoPackageVersion -TargetVersion $toolsetVersion -PackageName "mongodb" -Choco-Install -PackageName mongodb -ArgumentList "--version $latestChocoPackage" +Choco-Install -PackageName mongodb -ArgumentList "--version=$latestChocoPackage" $mongoPath = (Get-CimInstance Win32_Service -Filter "Name LIKE 'mongodb'").PathName $mongoBin = Split-Path -Path $mongoPath.split('"')[1] Add-MachinePathItem "$mongoBin" diff --git a/images/win/toolsets/toolset-2016.json b/images/win/toolsets/toolset-2016.json index 49141ca6..bf2c21ad 100644 --- a/images/win/toolsets/toolset-2016.json +++ b/images/win/toolsets/toolset-2016.json @@ -426,6 +426,6 @@ "version": "5.7" }, "mongodb": { - "version": "5" + "version": "5.0" } } diff --git a/images/win/toolsets/toolset-2019.json b/images/win/toolsets/toolset-2019.json index 2726268d..5cb45bbd 100644 --- a/images/win/toolsets/toolset-2019.json +++ b/images/win/toolsets/toolset-2019.json @@ -458,6 +458,6 @@ "version": "5.7" }, "mongodb": { - "version": "5" + "version": "5.0" } } diff --git a/images/win/toolsets/toolset-2022.json b/images/win/toolsets/toolset-2022.json index d7c19905..12ab1ba9 100644 --- a/images/win/toolsets/toolset-2022.json +++ b/images/win/toolsets/toolset-2022.json @@ -308,6 +308,6 @@ "version": "8.0" }, "mongodb": { - "version": "5" + "version": "5.0" } }