Ensure that v is passed to the ldflags as part of windows binary creation (#6659)
This commit is contained in:
parent
d098f9181b
commit
bf1a8d3387
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue