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
- Update
go.mod with the new version
- Update
tools.go import statement
- Run
go mod tidy to update go.sum
- Run
go mod download to fetch the new version
- 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
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
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
go.modwith the new versiontools.goimport statementgo mod tidyto update go.sumgo mod downloadto fetch the new versionFiles to Modify
go.mod- Update golangci-lint version to v2.7.2tools.go- Verify import statement (likely no change needed)go.sum- Will be updated automatically bygo mod tidyCommands
Acceptance Criteria
go.modshows golangci-lint v2.7.2go.sumcontains v2.7.2 checksumsgolangci-lint versioncommand shows v2.7.2make depscompletes successfullyNotes
This task only updates the dependency. The configuration migration happens in the next task.
Related to #7375