From ca642489daf58088eec95be68e5bcb303e393a1a Mon Sep 17 00:00:00 2001 From: Davis Goodin Date: Thu, 15 Jan 2026 10:54:37 -0800 Subject: [PATCH] Ensure gopdb isn't cross-compiled --- eng/pipeline/steps/install-gopdb.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eng/pipeline/steps/install-gopdb.yml b/eng/pipeline/steps/install-gopdb.yml index 75952de51c..e693ff83ee 100644 --- a/eng/pipeline/steps/install-gopdb.yml +++ b/eng/pipeline/steps/install-gopdb.yml @@ -28,6 +28,12 @@ steps: . eng/utilities.ps1 Download-Stage0 # Make sure we have a Go toolchain available cd go-pdb + + # Ensure we don't cross-compile. gopdb needs to run on the current machine. + $env:GOOS = '' + $env:GOARCH = '' + $env:GOARM = '' + & go build -o $(pdbPath)/gopdb.exe ./cmd/gopdb displayName: Install gopdb