diff --git a/ci/scripts/go_build.sh b/ci/scripts/go_build.sh index 94f75e501ea0b..3f8323f5c27c8 100755 --- a/ci/scripts/go_build.sh +++ b/ci/scripts/go_build.sh @@ -21,6 +21,8 @@ set -ex source_dir=${1}/go +export GOFLAGS="${GOFLAGS} -gcflags=-d=checkptr" + pushd ${source_dir}/arrow if [[ -n "${ARROW_GO_TESTCGO}" ]]; then diff --git a/ci/scripts/go_cgo_python_test.sh b/ci/scripts/go_cgo_python_test.sh index 5f2032fba92f4..e1941b924235a 100755 --- a/ci/scripts/go_cgo_python_test.sh +++ b/ci/scripts/go_cgo_python_test.sh @@ -21,6 +21,8 @@ set -ex source_dir=${1}/go +export GOFLAGS="${GOFLAGS} -gcflags=-d=checkptr" + pushd ${source_dir}/arrow/cdata/test case "$(uname)" in