Skip to content

Bump golangci-lint to v2.13.2 and migrate exhaustruct to exhaustruct_v5 - #5

Merged
AlexanderMint merged 1 commit into
mainfrom
maint/golangci-lint-2.13
Sep 5, 2026
Merged

AlexanderMint merged 1 commit into
mainfrom
maint/golangci-lint-2.13

Conversation

@AlexanderMint

Copy link
Copy Markdown
Contributor

Maintenance pass for the golangci-lint 2.13 release.

golangci-lint v2.12.2 -> v2.13.2

golangci-lint 2.13.0 deprecates exhaustruct in favour of exhaustruct_v5, a new major version of the upstream analyzer. With linters.default: all both versions were enabled at once, so the old exclusions and //nolint directives stopped matching and 2.13 reported new issues on an untouched tree.

  • .github/workflows/lint.yml: pin bumped to v2.13.2.
  • .golangci.yaml: the deprecated exhaustruct is disabled next to wsl and gomodguard; every exclusion, settings key and //nolint directive now names exhaustruct_v5. No Go code changes beyond the directive renames.

Verified locally with 2.13.2: 0 issues. in every module, no deprecation warnings, tests and go mod tidy clean.

golangci-lint 2.13.0 deprecated exhaustruct in favour of exhaustruct_v5.
Under `default: all` both run, so the deprecated linter joins wsl and
gomodguard in `disable`. The _test.go exclusion and the nolint in
FromPtr take the new name too: an exclusion or directive that still
names exhaustruct stops matching without a warning, and 2.13 reports
the findings it was holding back.
@AlexanderMint
AlexanderMint force-pushed the maint/golangci-lint-2.13 branch from 3a28288 to 6742518 Compare September 5, 2026 17:07
@AlexanderMint
AlexanderMint merged commit fabb775 into main Sep 5, 2026
8 checks passed
@AlexanderMint
AlexanderMint deleted the maint/golangci-lint-2.13 branch September 5, 2026 17:11
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