Skip to content

modernize: Enable waitgroup analyzer#44660

Merged
julianwiedmann merged 1 commit intomainfrom
pr/HadrienPatte/modernize-waitgroup
Mar 19, 2026
Merged

modernize: Enable waitgroup analyzer#44660
julianwiedmann merged 1 commit intomainfrom
pr/HadrienPatte/modernize-waitgroup

Conversation

@HadrienPatte
Copy link
Copy Markdown
Member

Enable the waitgroup modernize analyzer globally and address the last remaining failures.

Patch generated with go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -waitgroup ./...

Followup to #42642

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Mar 7, 2026
@github-actions github-actions bot added sig/policy Impacts whether traffic is allowed or denied based on user-defined policies. cilium-cli This PR contains changes related with cilium-cli labels Mar 7, 2026
@HadrienPatte
Copy link
Copy Markdown
Member Author

/test

@HadrienPatte HadrienPatte added the release-note/misc This PR makes changes that have no direct user impact. label Mar 8, 2026
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Mar 8, 2026
@HadrienPatte HadrienPatte marked this pull request as ready for review March 9, 2026 15:31
@HadrienPatte HadrienPatte requested review from a team as code owners March 9, 2026 15:31
Copy link
Copy Markdown
Contributor

@ti-mo ti-mo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Muchas gracias

Copy link
Copy Markdown
Contributor

@tommyp1ckles tommyp1ckles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HadrienPatte I'm wondering, do we intend to lint/diff for these in CI at some point so we don't regress back to the "old" way?

Enable the [`waitgroup`](https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/modernize#hdr-Analyzer_waitgroup) modernize analyzer globally and address the last remaining failures.

Patch generated with `go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -waitgroup ./...`

Signed-off-by: Hadrien Patte <[email protected]>
@HadrienPatte HadrienPatte force-pushed the pr/HadrienPatte/modernize-waitgroup branch from 4b54944 to 25027fe Compare March 11, 2026 15:11
@HadrienPatte HadrienPatte requested a review from a team as a code owner March 11, 2026 15:11
@HadrienPatte HadrienPatte requested a review from nebril March 11, 2026 15:11
@HadrienPatte
Copy link
Copy Markdown
Member Author

@HadrienPatte I'm wondering, do we intend to lint/diff for these in CI at some point so we don't regress back to the "old" way?

🤦 Thanks for catching that, I had actually forgotten to remove that line to enable the linter through golangci-lint. I updated the PR with it

Copy link
Copy Markdown
Member

@nebril nebril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@nebril
Copy link
Copy Markdown
Member

nebril commented Mar 12, 2026

/test

@julianwiedmann julianwiedmann removed the sig/policy Impacts whether traffic is allowed or denied based on user-defined policies. label Mar 19, 2026
@julianwiedmann
Copy link
Copy Markdown
Member

@cilium/ztunnel ping

@julianwiedmann julianwiedmann added this pull request to the merge queue Mar 19, 2026
Merged via the queue into main with commit 0880ad3 Mar 19, 2026
591 of 594 checks passed
@julianwiedmann julianwiedmann deleted the pr/HadrienPatte/modernize-waitgroup branch March 19, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cilium-cli This PR contains changes related with cilium-cli release-note/misc This PR makes changes that have no direct user impact.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants