Pulse/.husky
rcourtman 3de30d75fd Pin the pre-commit golangci-lint step to the go.mod toolchain
GOTOOLCHAIN=auto never downgrades, so once the system Go moved to
go1.27.0 the go command wrote version-4 export data that golangci-lint
v1.64.8 (built with go1.26, older vendored x/tools) cannot decode.
Every Go commit then failed with "export data version 4 is greater
than maximum supported version 2" and a cascade of bogus "type X has
no field" typecheck errors. Rebuilding the linter with go1.27 does not
help; its vendored x/tools is still too old for the new export data.

Derive GOTOOLCHAIN from the root go.mod (toolchain directive, falling
back to the go directive, else auto) and export it for both the root
and nested-module lint invocations, so lint always runs under the
toolchain the module actually ships with. The single root pin also
covers nested modules, whose go directives must stay at or below it.
GOLANGCI_LINT_GOTOOLCHAIN overrides the derivation.
2026-08-22 07:33:29 +01:00
..
pre-commit Pin the pre-commit golangci-lint step to the go.mod toolchain 2026-08-22 07:33:29 +01:00
pre-push feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
prepare-commit-msg Make prepare-commit-msg executable so worktree commits keep the trailer 2026-08-04 11:28:05 +01:00