Update buildpgobinaries.sh

This commit is contained in:
Dustin Brown
2024-02-15 13:05:53 -08:00
committed by GitHub
parent 0e770aeb40
commit b9be980550
@@ -12,8 +12,12 @@ build_cmd='go build'
profile=""
if [ -n "$PROFILE" ]; then
echo "Building PGO binaries"
profile='-v '"$PROFILE"':/cpu.pprof'
build_cmd='go build -pgo=/cpu.pprof'
echo "profile is: $profile"
echo "build_cmd is: $build_cmd"
fi
docker run --rm -v `pwd`:/src "$profile" golang:"$GO_BUILD_VERSION"-bookworm /bin/bash -c '