ci: update golangci-lint to v2.1.6#5
Merged
estesp merged 1 commit intocontainerd:mainfrom Dec 5, 2025
Merged
Conversation
Member
Author
|
Needs #6 |
There was a problem hiding this comment.
Pull Request Overview
This PR upgrades the project’s golangci-lint version to v2.1.6 and updates both the lint configuration file and CI workflow to match the new release.
- Migrate
.golangci.ymlto v2.1.6 format, re-enable select linters, and add newexclusionsandformatterssections - Bump the GitHub Actions step to install golangci-lint v2.1.6 and update the action reference accordingly
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.golangci.yml |
Migrated config to v2 schema, updated enabled linters, added exclusions and formatting config |
.github/workflows/ci.yml |
Changed action to golangci-lint-action@v8 and set version: v2.1.6 |
Comments suppressed due to low confidence (3)
.github/workflows/ci.yml:41
- The GitHub Action reference
golangci/golangci-lint-action@v8may not exist; please verify the supported major version (for example, v6 or v4) and update the tag accordingly.
- - uses: golangci/golangci-lint-action@v8
.golangci.yml:17
- Consider reintroducing a
run: timeout: 5msetting in the root of this config so that localgolangci-lintruns use the same timeout without relying solely on the CI flags.
exclusions:
.golangci.yml:47
- Indentation for the
- testentry underformatters.exclusions.pathsis inconsistent with the other path entries and may cause a YAML parse error; align it with the rest.
- test
Signed-off-by: Austin Vazquez <austin.vazquez.dev@gmail.com>
367c096 to
0d79777
Compare
estesp
approved these changes
Jun 4, 2025
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.
This change updates golangci-lint to v2.1.6.
For the configuration updates, I ran
golangci-lint migrateand added back a few linters that had been removed by default.