potiuk opened a new pull request, #69338: URL: https://github.com/apache/airflow/pull/69338
Adds a prek hook, `check-go-version-in-sync`, that keeps the Go toolchain version consistent across every file that pins it, with `go-sdk/go.mod` as the single source of truth. The Go version is pinned in eight places: `go-sdk/go.mod`, the `go_example` module, the `setup-go` step in both CI workflow copies, the `golang:<ver>-alpine` builder image used by the e2e conftest and by breeze, and `default_language_version.golang` in the top-level and `go-sdk` prek configs. They have no cross-file include, so a dependency bump that raises the `go` directive in `go-sdk/go.mod` leaves the rest behind — and the drift only surfaces as an opaque `go.mod requires go >= <new>` failure deep in CI, as happened in #69214. The hook fails fast and points at the exact drifting file, comparing at `major.minor` granularity. Modelled on the existing `check-java-sdk-version-in-sync` hook. related: #69214 --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 4.8) Generated-by: Claude Code (Opus 4.8) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
