From e9d95c3bd6932e3d6537cfd6dbe05d1bda790bd5 Mon Sep 17 00:00:00 2001 From: codex Date: Sat, 3 Oct 2026 02:05:27 -0500 Subject: [PATCH] ci: pin resolved Go toolchain during coverage checks --- scripts/quality_gate.sh | 5 +++++ 1 file changed, 5 insertions(+) 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"