mirror of
https://github.com/gastownhall/beads.git
synced 2026-09-14 20:17:24 +08:00
89b97da5ea
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
15 lines
348 B
YAML
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
|