Skip to content

[plan] Update golangci-lint dependency to v2.7.2 #7376

@github-actions

Description

@github-actions

Objective

Update the golangci-lint dependency from v1.62.2 to v2.7.2 in the project's dependency management files.

Context

This is the first step in the golangci-lint v2 upgrade. We need to update the dependency declaration before running the migration tool.

Approach

  1. Update go.mod with the new version
  2. Update tools.go import statement
  3. Run go mod tidy to update go.sum
  4. Run go mod download to fetch the new version
  5. Verify the installation

Files to Modify

  • go.mod - Update golangci-lint version to v2.7.2
  • tools.go - Verify import statement (likely no change needed)
  • go.sum - Will be updated automatically by go mod tidy

Commands

# Update to v2.7.2
go get github.com/golangci/golangci-lint/cmd/golangci-lint@v2.7.2

# Clean up dependencies
go mod tidy

# Verify installation
go run github.com/golangci/golangci-lint/cmd/golangci-lint version

Acceptance Criteria

  • go.mod shows golangci-lint v2.7.2
  • go.sum contains v2.7.2 checksums
  • golangci-lint version command shows v2.7.2
  • No dependency conflicts in go.mod
  • make deps completes successfully

Notes

This task only updates the dependency. The configuration migration happens in the next task.
Related to #7375

AI generated by Plan Command for discussion #7356

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions