mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-19 10:33:29 +00:00
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. |
||
|---|---|---|
| .. | ||
| pre-commit | ||
| pre-push | ||
| prepare-commit-msg | ||