Skip to content

[codex] Add prek sync-go-version hook#81

Merged
simonwhitaker merged 2 commits into
mainfrom
simonwhitaker/add-prek-sync-check
Apr 6, 2026
Merged

[codex] Add prek sync-go-version hook#81
simonwhitaker merged 2 commits into
mainfrom
simonwhitaker/add-prek-sync-check

Conversation

@simonwhitaker
Copy link
Copy Markdown
Owner

This change adds a prek pre-commit hook that runs tools/sync-go-version.sh before each commit so contributors catch mismatches between go.mod and the Docker build image locally instead of after pushing changes. Without this check, the repository can drift into a state where the declared Go version and the Dockerfile’s build image diverge, which makes local and CI builds less predictable. The root cause was that the sync script existed but was not wired into any default developer workflow, so it was easy to miss. The fix adds a local prek hook configuration and documents how to install hooks and run them manually in the contributor guide. Validation: prek run --all-files.

@simonwhitaker simonwhitaker merged commit c017ebd into main Apr 6, 2026
2 checks passed
@simonwhitaker simonwhitaker deleted the simonwhitaker/add-prek-sync-check branch April 6, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant