Skip to content

Run go fix as part of make test and CI - #1432

Merged
matheuscscp merged 2 commits into
fluxcd:mainfrom
ayushgharat234:go-fix
Nov 15, 2026
Merged

matheuscscp merged 2 commits into
fluxcd:mainfrom
ayushgharat234:go-fix

Conversation

@ayushgharat234

Copy link
Copy Markdown
Contributor

Part of fluxcd/flux2#6120

  • Add a fix Make target that runs go fix across both the root and api modules, and wire it to run as the first step of make test.
  • Commit the resulting go fix updates in the root module (api/ required no changes).
  • Demote k8s.io/utils to an indirect dependency in go.mod, since go fix replaced our only direct usage (ptr.To) with built-in new(...).

Validation:

  • make test passed, and re-running it left the working tree clean
  • TestEventServer flaked once with a connection error before passing on retry, but unrelated to this change.

ayushgharat234 and others added 2 commits November 14, 2026 18:11
Add a fix target to the Makefile that runs `go fix` in the root and
api modules, and run it first in make test.

Include the changes produced by `go fix` and the resulting go.mod
update, so that CI's dirty-tree check passes.

Signed-off-by: Ayush Gharat <ayushgharat234@gmail.com>
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.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 f218ff5 into fluxcd:main Nov 15, 2026
5 checks passed
@matheuscscp matheuscscp added the area/ci CI related issues and pull requests label Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci CI related issues and pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants