Skip to content

[CI] Add version field to golangci-lint configuration#501

Merged
leecalcote merged 2 commits intomasterfrom
copilot/upgrade-golangci-lint-config
Dec 15, 2025
Merged

[CI] Add version field to golangci-lint configuration#501
leecalcote merged 2 commits intomasterfrom
copilot/upgrade-golangci-lint-config

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 15, 2025

Description

golangci-lint v2.0+ requires an explicit version field in the configuration. The missing field caused CI failures:

Error: can't load config: unsupported version of the configuration: ""

Added version: 2 to .golangci.yml to comply with the v2 configuration format.

Notes for Reviewers

Single line change to configuration file. No functional changes to linting rules or behavior.

Signed commits

  • Yes, I signed my commits.
Original prompt

This section details on the original issue you should resolve

<issue_title>[CI] Upgrade golangci-lint configuration</issue_title>
<issue_description>#### Current Behavior

golangci-lint run ./...
Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions
The command is terminated due to an error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions
make: *** [lint] Error 3

Contributor Guides and Resources

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@leecalcote leecalcote marked this pull request as ready for review December 15, 2025 03:53
Co-authored-by: leecalcote <7570704+leecalcote@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade golangci-lint configuration [CI] Add version field to golangci-lint configuration Dec 15, 2025
Copilot AI requested a review from leecalcote December 15, 2025 03:55
@leecalcote leecalcote merged commit 4a0d464 into master Dec 15, 2025
3 of 5 checks passed
@leecalcote leecalcote deleted the copilot/upgrade-golangci-lint-config branch December 15, 2025 03:58
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.

[CI] Upgrade golangci-lint configuration

2 participants