ci: pin resolved Go toolchain during coverage checks
This commit is contained in:
parent
ec7c2ee053
commit
e9d95c3bd6
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user