From e19d14f4052667c65c200630191a1d4b82f20869 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Feb 2026 03:59:28 +0000 Subject: [PATCH 1/2] Initial plan From 7e629885ccdab644ffc6bba6af8d8820888e152b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Feb 2026 04:01:51 +0000 Subject: [PATCH 2/2] fix ci-build.ps1: correct version.txt path, ldflags module/vars, and typo Co-authored-by: vhvb1989 <24213737+vhvb1989@users.noreply.github.com> --- cli/azd/extensions/azure.appservice/ci-build.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/azd/extensions/azure.appservice/ci-build.ps1 b/cli/azd/extensions/azure.appservice/ci-build.ps1 index 7d98f4fe420..b8814e1168c 100644 --- a/cli/azd/extensions/azure.appservice/ci-build.ps1 +++ b/cli/azd/extensions/azure.appservice/ci-build.ps1 @@ -1,5 +1,5 @@ param( - [string] $Version = (Get-Content "$PSScriptRoot/../version.txt"), + [string] $Version = (Get-Content "$PSScriptRoot/version.txt"), [string] $SourceVersion = (git rev-parse HEAD), [switch] $CodeCoverageEnabled, [switch] $BuildRecordMode, @@ -47,7 +47,7 @@ $tagsFlag = "-tags=cfi,cfg,osusergo" # -w: Omit DWARF symbol table # -X: Set variable at link time. Used to set the version in source. -$ldFlag = "-ldflags=-s -w -X 'azureaiagent/internal/version.Version=$Version' -X 'azureaiagent/internal/version.Commit=$SourceVersion' -X 'azureaiagent/internal/version.BuildDate=$(Get-Date -Format o)' " +$ldFlag = "-ldflags=-s -w -X 'azureappservice/internal/version.Version=$Version'" if ($IsWindows) { $msg = "Building for Windows" @@ -104,7 +104,7 @@ function PrintFlags() { } $oldGOEXPERIMENT = $env:GOEXPERIMENT -# Enable the loopvar experiment, which makes the loop variaible for go loops like `range` behave as most folks would expect. +# Enable the loopvar experiment, which makes the loop variable for go loops like `range` behave as most folks would expect. # the go team is exploring making this default in the future, and we'd like to opt into the behavior now. $env:GOEXPERIMENT = "loopvar"