From dbddf5bcaaf3bd5c55aec6095335d17e8cb482e2 Mon Sep 17 00:00:00 2001 From: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com> Date: Mon, 8 May 2023 13:07:21 -0400 Subject: [PATCH] Remove cgo from crt build script (#107) --- scripts/crt-build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/crt-build.sh b/scripts/crt-build.sh index ad95884d..d264c4f6 100755 --- a/scripts/crt-build.sh +++ b/scripts/crt-build.sh @@ -75,7 +75,7 @@ function build() { # Build vault-benchmark echo "$msg" - go build -o "$BIN_PATH" -tags "$GO_TAGS" -ldflags "$ldflags" -trimpath -buildvcs=false + CGO_ENABLED=0 go build -o "$BIN_PATH" -tags "$GO_TAGS" -ldflags "$ldflags" -trimpath -buildvcs=false } # Run the CRT Builder @@ -99,4 +99,4 @@ function main() { esac } -main "$@" \ No newline at end of file +main "$@"