Skip to content

modernize some code#77

Merged
thaJeztah merged 1 commit intodocker:mainfrom
thaJeztah:modernize
Feb 14, 2026
Merged

modernize some code#77
thaJeztah merged 1 commit intodocker:mainfrom
thaJeztah:modernize

Conversation

@thaJeztah
Copy link
Member

Results of running the modernize command;

go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
modernize -fix ./...

Results of running the modernize command;

    go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
    modernize -fix ./...

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah requested a review from crazy-max February 12, 2026 18:00
@thaJeztah
Copy link
Member Author

@crazy-max ptal 🤗

@crazy-max
Copy link
Member

We could have modernize validation/fix set up in our Dockerfile so we can have extra lint check similar to https://github.com/docker/buildx/blob/044e152008cd3f0de0fd3035c16682671c5b1b52/hack/dockerfiles/lint.Dockerfile#L50-L127. Although with Go 1.26 it would be built-in: https://go.dev/doc/go1.26#go-command

@thaJeztah
Copy link
Member Author

Yeah, was considering that, but maybe too much for this repo?

Thx for review!

@thaJeztah thaJeztah merged commit bad2919 into docker:main Feb 14, 2026
6 checks passed
@thaJeztah thaJeztah deleted the modernize branch February 14, 2026 23:35
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.

2 participants