Skip to content

Run go fix in a loop until it converges - #44

Merged
matheuscscp merged 1 commit into
fluxcd:mainfrom
ahmadbbi:go-fix-converge
Nov 17, 2026
Merged

matheuscscp merged 1 commit into
fluxcd:mainfrom
ahmadbbi:go-fix-converge

Conversation

@ahmadbbi

@ahmadbbi ahmadbbi commented Nov 17, 2026 •

Copy link
Copy Markdown

Follow-up for #42. go fix sometimes needs multiple passes before it stops making changes, so the fix target now reruns it until the diff of the *.go files no longer changes.

Supersedes #43, as suggested in fluxcd/flux2#6120 (comment).

Tested locally: make fix makes no further changes on main, and make test passes.

Closes: fluxcd/flux2#6120

Signed-off-by: Ahmad Babaei <40031827+ahmadbbi@users.noreply.github.com>

@matheuscscp matheuscscp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! 🚀

@matheuscscp
matheuscscp merged commit a40937b into fluxcd:main Nov 17, 2026
2 checks passed
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.

Use go fix ./... to modernize our projects

2 participants