diff --git a/scripts/quality_gate.sh b/scripts/quality_gate.sh index 9747556..5f264cc 100755 --- a/scripts/quality_gate.sh +++ b/scripts/quality_gate.sh @@ -157,6 +157,11 @@ quality_gate_finalize() { trap 'quality_gate_finalize $?' EXIT cd "${REPO_DIR}" +# Pin the resolved toolchain for child coverage commands. Auto-switching from an +# older host Go can otherwise look for the removed covdata tool (Go issue 75031). +if [[ "$(go env GOTOOLCHAIN)" == "auto" ]]; then + export GOTOOLCHAIN="$(go env GOVERSION)" +fi mkdir -p "${BUILD_DIR}" rm -f "${COVERAGE_PROFILE}" "${COVERAGE_PERCENT_FILE}" printf 'failed\n' > "${BUILD_DIR}/docs-naming.status"