Skip to content

Bump golangci-lint-action to v7 and default linter to v2 - #100

Merged
ljkiraly merged 1 commit into
mainfrom
fix-golangci-action-v7
Sep 1, 2026
Merged

ljkiraly merged 1 commit into
mainfrom
fix-golangci-action-v7

Conversation

@ljkiraly

@ljkiraly ljkiraly commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

The previous change to golangci-lint-action@v6 is insufficient for golangci-lint v2: the action hard-couples its major version to the linter major version. v4/v6 support only golangci-lint v1, while v7 supports only golangci-lint v2 and rejects v1 ("golangci-lint v1 is not supported by golangci-lint-action v7"). With v6 pinned, a v2 linter-version fails with "golangci-lint v2 is not supported by golangci-lint-action v6, you must update to golangci-lint-action v7".

  • Bump golangci/golangci-lint-action from v6 to v7.
  • Bump the default linter-version from v1.64.2 to v2.13.2 so the action and the default linter major versions are consistent.

NOTE: this is a hard cutover. Because v7 cannot run golangci-lint v1, every repository using this reusable workflow must have a v2-format .golangci.yml when this change lands. Repos are migrated with the accompanying migrate-golangci-v2.sh tooling.

The previous change to golangci-lint-action@v6 is insufficient for
golangci-lint v2: the action hard-couples its major version to the linter
major version. v4/v6 support only golangci-lint v1, while v7 supports only
golangci-lint v2 and rejects v1 ("golangci-lint v1 is not supported by
golangci-lint-action v7"). With v6 pinned, a v2 linter-version fails with
"golangci-lint v2 is not supported by golangci-lint-action v6, you must
update to golangci-lint-action v7".

- Bump golangci/golangci-lint-action from v6 to v7.
- Bump the default linter-version from v1.64.2 to v2.13.2 so the action and
  the default linter major versions are consistent.

NOTE: this is a hard cutover. Because v7 cannot run golangci-lint v1, every
repository using this reusable workflow must have a v2-format .golangci.yml
when this change lands. Repos are migrated with the accompanying
migrate-golangci-v2.sh tooling.

Assisted-by: Kiro (AI assistant)
Signed-off-by: Laszlo Kiraly <laszlo.kiraly@est.tech>
@ljkiraly
ljkiraly merged commit cb25b3b into main Sep 1, 2026
2 checks passed
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