From 6bbaf982fff711c093fe80a241e183c38dc6ca05 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Jul 2026 20:59:03 +0000 Subject: [PATCH 1/3] Fix mgmt regen: copy unbranded emitter tgz into debug folder Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com> --- .../eng/scripts/Submit-AzureSdkForNetPr.ps1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/http-client-csharp/eng/scripts/Submit-AzureSdkForNetPr.ps1 b/packages/http-client-csharp/eng/scripts/Submit-AzureSdkForNetPr.ps1 index eb374f564c7..4fd403155f6 100755 --- a/packages/http-client-csharp/eng/scripts/Submit-AzureSdkForNetPr.ps1 +++ b/packages/http-client-csharp/eng/scripts/Submit-AzureSdkForNetPr.ps1 @@ -481,8 +481,13 @@ try { if (-not $unbrandedTgz) { throw "Could not find unbranded emitter .tgz in build artifacts at: $BuildArtifactsPath" } - $unbrandedPackagePath = $unbrandedTgz.FullName - Write-Host "Using unbranded package from build artifacts: $unbrandedPackagePath" + Write-Host "Using unbranded package from build artifacts: $($unbrandedTgz.FullName)" + + # Copy the unbranded .tgz into the debug folder so downstream generators + # (e.g. the management plane generator) can locate it alongside the + # locally built Azure package using the expected debug-folder path. + $unbrandedPackagePath = Join-Path $debugFolder $unbrandedTgz.Name + Copy-Item $unbrandedTgz.FullName -Destination $unbrandedPackagePath -Force # Copy .nupkg files from build artifacts to debug folder $nupkgFiles = Get-ChildItem -Path $BuildArtifactsPath -Filter "*.nupkg" -Recurse From 5b2e74aa41bc1200b5ec40afa70fd1f97ee024eb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Jul 2026 21:05:06 +0000 Subject: [PATCH 2/3] Remove explanatory comment on unbranded tgz copy Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com> --- .../http-client-csharp/eng/scripts/Submit-AzureSdkForNetPr.ps1 | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/http-client-csharp/eng/scripts/Submit-AzureSdkForNetPr.ps1 b/packages/http-client-csharp/eng/scripts/Submit-AzureSdkForNetPr.ps1 index 4fd403155f6..1246987fd44 100755 --- a/packages/http-client-csharp/eng/scripts/Submit-AzureSdkForNetPr.ps1 +++ b/packages/http-client-csharp/eng/scripts/Submit-AzureSdkForNetPr.ps1 @@ -483,9 +483,6 @@ try { } Write-Host "Using unbranded package from build artifacts: $($unbrandedTgz.FullName)" - # Copy the unbranded .tgz into the debug folder so downstream generators - # (e.g. the management plane generator) can locate it alongside the - # locally built Azure package using the expected debug-folder path. $unbrandedPackagePath = Join-Path $debugFolder $unbrandedTgz.Name Copy-Item $unbrandedTgz.FullName -Destination $unbrandedPackagePath -Force From 2c631b922758ee4589123ec0078002422ce2acee Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Jul 2026 15:49:32 +0000 Subject: [PATCH 3/3] Fix: rename copied tgz to match PackageVersion and add ErrorAction Stop Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com> --- .../eng/scripts/Submit-AzureSdkForNetPr.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/http-client-csharp/eng/scripts/Submit-AzureSdkForNetPr.ps1 b/packages/http-client-csharp/eng/scripts/Submit-AzureSdkForNetPr.ps1 index 1246987fd44..3e2b94ff1a2 100755 --- a/packages/http-client-csharp/eng/scripts/Submit-AzureSdkForNetPr.ps1 +++ b/packages/http-client-csharp/eng/scripts/Submit-AzureSdkForNetPr.ps1 @@ -483,8 +483,8 @@ try { } Write-Host "Using unbranded package from build artifacts: $($unbrandedTgz.FullName)" - $unbrandedPackagePath = Join-Path $debugFolder $unbrandedTgz.Name - Copy-Item $unbrandedTgz.FullName -Destination $unbrandedPackagePath -Force + $unbrandedPackagePath = Join-Path $debugFolder "typespec-http-client-csharp-$PackageVersion.tgz" + Copy-Item $unbrandedTgz.FullName -Destination $unbrandedPackagePath -Force -ErrorAction Stop # Copy .nupkg files from build artifacts to debug folder $nupkgFiles = Get-ChildItem -Path $BuildArtifactsPath -Filter "*.nupkg" -Recurse