From bf1a8d33877f7eb6a7f9a92eebd05e2515153bf0 Mon Sep 17 00:00:00 2001 From: Paul Stack Date: Wed, 31 Mar 2021 12:46:49 +0100 Subject: [PATCH] Ensure that v is passed to the ldflags as part of windows binary creation (#6659) --- scripts/make_release.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/make_release.ps1 b/scripts/make_release.ps1 index 1b5199ba1..fde2a43f0 100644 --- a/scripts/make_release.ps1 +++ b/scripts/make_release.ps1 @@ -13,7 +13,7 @@ $PublishTargets = @($GitHash, $Version, $Branch) function RunGoBuild($goPackage, $dir, $outputName) { $binRoot = New-Item -ItemType Directory -Force -Path "$PublishDir\bin" Push-Location $dir - go build -ldflags "-X github.com/pulumi/pulumi/pkg/v2/version.Version=$Version" -o "$binRoot\$outputName" $goPackage + go build -ldflags "-X github.com/pulumi/pulumi/pkg/v2/version.Version=v$Version" -o "$binRoot\$outputName" $goPackage Pop-Location }