[Windows] Pin mongodb to 5.0 (#4482)

* [Windows] pin mongodb to 5.0
* Change version argument to include "="
This commit is contained in:
Mikhail Timofeev
2021-11-12 10:59:53 +03:00
committed by GitHub
parent d6a789cbef
commit fa7f7eac99
4 changed files with 4 additions and 4 deletions

View File

@@ -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"