chore: migrate golangci-lint to v2 to clear go 1.25 toolchain mismatch#43
Merged
Merged
Conversation
golangci-lint v1.64.8 was built with go1.24 and cannot lint a go 1.25 target (raised by the toolchain bump in #42). Upgrade the action from v6.5.2 to v7.0.1 and the binary from v1.64.8 to v2.12.2. Migrate .golangci.yml to v2 schema (top-level version: "2", settings under linters.settings, exclusions consolidated). Disable quickfix and style checks QF1001/QF1011/QF1012/ST1005/ST1023 introduced by v2 defaults to keep enforcement surface equivalent to v1; those refactors are queued for a follow-up style: PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lint (Go)after the workflow toolchain bump in chore: pin workflows to go 1.25.x to clear govulncheck stdlib alerts #42. This PR unblocks the Lint job.golangci-lint-actionv6.5.2 to v7.0.1 (pinned SHA9fae48ac) and binary v1.64.8 to v2.12.2; migrates.golangci.ymlto v2 schema (top-levelversion: "2", settings underlinters.settings, exclusions consolidated fromissues.exclude-rules).QF1001,QF1011,QF1012,ST1005,ST1023) are explicitly disabled inlinters.settings.staticcheck.checksto keep enforcement surface equivalent to v1; those 17 findings are queued for a follow-uprefactor:/style:PR so this bump stays scope-clean.go.modand all package sources untouched.