Skip to content

Bump golangci-lint-action v4 -> v6 for golangci-lint v2 support - #99

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

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

Conversation

@ljkiraly

@ljkiraly ljkiraly commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

golangci-lint-action@v4 injects --out-format=github-actions into the golangci-lint invocation for v1 compatibility. golangci-lint v2 removed the --out-format flag (replaced by the --output.* flags / output config section), so v4 fails with "unknown flag: --out-format" as soon as a repo pins a v2 linter-version.

Bump the action to v6, which supports golangci-lint v2 and no longer injects the removed flag.

golangci-lint-action@v4 injects `--out-format=github-actions` into the
golangci-lint invocation for v1 compatibility. golangci-lint v2 removed the
`--out-format` flag (replaced by the `--output.*` flags / output config
section), so v4 fails with "unknown flag: --out-format" as soon as a repo
pins a v2 linter-version.

Bump the action to v6, which supports golangci-lint v2 and no longer injects
the removed flag.

Assisted-by: Kiro (AI assistant)
Signed-off-by: Laszlo Kiraly <laszlo.kiraly@est.tech>
@ljkiraly
ljkiraly merged commit 10aa583 into main Sep 1, 2026
2 checks passed
@ljkiraly
ljkiraly deleted the fix-golangci-action-v6 branch September 1, 2026 14:33
@ljkiraly
ljkiraly restored the fix-golangci-action-v6 branch September 1, 2026 14:34
@ljkiraly
ljkiraly deleted the fix-golangci-action-v6 branch September 1, 2026 14:35
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