From fa5facaaf852e56cd283a151a0bb422e156a9c13 Mon Sep 17 00:00:00 2001 From: "Scott Beddall (from Dev Box)" Date: Mon, 8 Apr 2024 17:54:43 -0700 Subject: [PATCH] floating the proxy version is not a safe choice. there is no guarantee that the version being utilized will actually work as expected --- eng/scripts/Start-TestProxy.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eng/scripts/Start-TestProxy.ps1 b/eng/scripts/Start-TestProxy.ps1 index bf83162e4..bd62e47a8 100644 --- a/eng/scripts/Start-TestProxy.ps1 +++ b/eng/scripts/Start-TestProxy.ps1 @@ -23,7 +23,9 @@ $CurrentVersion = (Get-Command -Name "test-proxy" -ErrorAction SilentlyContinue) if($error){ echo "Will install testproxy" - dotnet tool update azure.sdk.tools.testproxy --global --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --version "1.0.0-dev*" + $proxyVersion = (Get-Content -Path (Join-Path $PSScriptRoot ".." "common" "testproxy" "target_version.txt")).Trim() + + dotnet tool update azure.sdk.tools.testproxy --global --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --version $proxyVersion # clear the errors again $error.clear()