chore(go): Use go fix to update golang usage, fixes #7963#8249
Merged
Conversation
|
Download the artifacts for this pull request:
See Testing a PR. |
stasadev
approved these changes
Mar 24, 2026
Member
stasadev
left a comment
There was a problem hiding this comment.
According to:
We can use modernize linter to basically do the same, I added it in 9083eb9 (this PR)
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.
The Issue
go fixin go 1.26 #7963Go 1.26 introduced an enhanced
go fixtool that modernizes Go code idioms, notably replacinginterface{}withanyand other deprecated patterns throughout the codebase.How This PR Solves The Issue
Ran
go fix ./...against the entire codebase using Go 1.26, which automatically updated 77 files acrosscmd/andpkg/. The primary change is replacing the olderinterface{}type alias with the modernanyalias introduced in Go 1.18, which is now the idiomatic form. Additional minor modernizations were applied bygo fixas well.No functional changes — this is a purely mechanical transformation performed by the official Go toolchain.
Manual Testing Instructions
make.gotmp/bin/linux_amd64/ddev --versiongo test -v ./pkg/ddevapp/ -run TestDdevStartAutomated Testing Overview
No new tests are needed. The existing test suite covers the changed code paths. CI will validate that all tests continue to pass after the mechanical refactor.
Release/Deployment Notes
No functional changes. This is a code modernization pass with no user-visible impact.