diff --git a/packages/guardian-windows/packaging b/packages/guardian-windows/packaging index 5afa2939..aa96b5b5 100644 --- a/packages/guardian-windows/packaging +++ b/packages/guardian-windows/packaging @@ -19,12 +19,12 @@ if ($LASTEXITCODE -ge 8) { . C:\var\vcap\packages\golang-*-windows\bosh\compile.ps1 Push-Location guardian -go.exe build -mod vendor -o "${BOSH_INSTALL_TARGET}\gdn.exe" -ldflags "-X main.version=${gdn_version}" ".\cmd\gdn" +go.exe build -buildvcs=false -mod vendor -o "${BOSH_INSTALL_TARGET}\gdn.exe" -ldflags "-X main.version=${gdn_version}" ".\cmd\gdn" if ($LASTEXITCODE -ne 0) { Write-Error "Error compiling: cmd\gdn" } -go.exe build -mod vendor -o "${BOSH_INSTALL_TARGET}\winit.exe" ".\cmd\winit" +go.exe build -buildvcs=false -mod vendor -o "${BOSH_INSTALL_TARGET}\winit.exe" ".\cmd\winit" if ($LASTEXITCODE -ne 0) { Write-Error "Error compiling: cmd\winit" }