Files
gastownhall__beads/.pre-commit-config.yaml
quartz 89b97da5ea fix: detect Go version mismatch in pre-commit hook before golangci-lint panics (bd-66nc)
When golangci-lint is built with an older Go than the project requires
(e.g. go1.25 binary vs go1.26 project), its internal go/types package
panics on newer syntax. Add a version check to .githooks/pre-commit that
compares golangci-lint built-with Go version against go.mod and exits
with a clear error message instead of a cryptic panic.

Also bump .pre-commit-config.yaml golangci-lint from v2.1.6 to v2.10.1.

Executed-By: beads/refinery
Rig: beads
Role: refinery
2026-03-02 18:50:29 -08:00

15 lines
348 B
YAML

repos:
- repo: https://github.com/golangci/golangci-lint
rev: v2.10.1
hooks:
- id: golangci-lint
args: [--timeout=5m]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files