Repository navigation
chore: fix lint errors from newer golangci-lint - #7958
Merged
Merged
Conversation
Signed-off-by: Faiyaz Rahman <faiyazrahman03@gmail.com>
This was referenced Sep 30, 2026
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.
CI lint is red on master, but it looks like it’s not caused by a code change. The workflow uses
version: latest, and golangci-lint v2.13.0 landed with updates to two bundled linters.gofumpt v0.9.2 → v0.11.0
(FileLoader)(nil)→FileLoader(nil), same forFolderLoaderandPEMLoaderfileserver/matcher.go:if !(...)→if !...staticcheck v0.7.0 → v0.8.0
caddytest.go: removedDualStack: true, which has been inert since Go 1.12One slightly confusing thing: CI reports 4 errors, but there are actually 5.
max-same-issuesis set to 3, so one of the gofumpt errors gets hidden because they have the same message. The hidden one ismatcher.go, so fixing only caddytls still leaves CI red.--max-same-issues=0shows all 5.I verified this with golangci-lint v2.13.1 (current
latest) and it’s clean now. Build, vet, and tests also pass for the touched packages.This was what was blocking CI on #7946.
cc @steadytao
AI disclosure: I used AI to help figure out which files CI was complaining about and why.